Ruby
Ruby is a dark, saturated magenta color with the hex code #CA0147 (hue 339°, saturation 99%, lightness 40%).
- HEX
#CA0147 - RGB
rgb(202 1 71) - HSL
hsl(339 99% 40%) - OKLCH
oklch(53.4% 0.213 14)
| Name | HEX | RGB | HSL | CMYK | OKLCH | |
|---|---|---|---|---|---|---|
| Ruby | #CA0147 | 202, 1, 71 | 339°, 99%, 40% | 0, 100, 65, 21 | 53.4% 0.213 14 |
Contrast with white text 5.82:1, with black text 3.61:1 — use white text on Ruby.
Huebook · Maintained by Iris Marlow (pen name) · automated checks · Data: color-name-list (MIT) for names; CSS Color Module Level 4 (W3C) for CSS named colors · Updated · How the checks work
Adjust Ruby
Move the sliders to make Ruby lighter, darker, more or less vivid, or shift its hue. The nearest named colors update as you go.
- HEX
#CA0147 - RGB
rgb(202 1 71) - HSL
hsl(339 99% 40%)
Variations of Ruby
Text on Ruby
WCAG 2 asks for 4.5:1 for body text and 3:1 for large text (AA), and 7:1 and 4.5:1 for the stricter AAA level.
Ruby with color blindness
How Ruby appears with a complete loss of red (protanopia), green (deuteranopia) or blue (tritanopia) cones, simulated with the Machado, Oliveira and Fernandes (2009) model. Red-green color blindness affects about 1 in 12 men and 1 in 200 women, so do not rely on color alone to carry meaning.
Tints and shades
Colors that go with Ruby
Six color schemes built on Ruby with classic harmony rules. The complementary scheme pairs it with Cōng Lǜ Green (#01C08D), the color opposite it on the color wheel.
- Ruby Complementary Color Scheme#CA0147#FF2277#01C08D#007D58#2AFEB7
- Ruby Analogous Color Scheme#8806CE#CC11BB#CA0147#CC2200#C68400
- Ruby Triadic Color Scheme#CA0147#55CC00#024ACA#EF347C#337700
- Ruby Split-complementary Color Scheme#CA0147#00CC33#06A9CA#7B002C#16F12D
- Ruby Tetradic Color Scheme#CA0147#AACC00#01C08D#1100CC#EF347C
- Ruby Monochromatic Color Scheme#330011#7B002C#CA0147#FF1166#FF629F
Nearest CSS named colors
- Crimson (
crimson): Crimson (#DC143C) is lighter than Ruby (relative luminance 0.160 vs 0.130) and less saturated, with its hue 9° away. - Fire Brick (
firebrick): Fire Brick (#B22222) is darker than Ruby (relative luminance 0.107 vs 0.130) and less saturated, with its hue 21° away. - Brown (CSS) (
brown): Brown (CSS) (#A52A2A) is darker than Ruby (relative luminance 0.098 vs 0.130) and less saturated, with its hue 21° away. - Medium Violet Red (
mediumvioletred): Medium Violet Red (#C71585) is lighter than Ruby (relative luminance 0.144 vs 0.130) and less saturated, with its hue 17° away.
Gradients with Ruby
Similar dark pink colors
- 8 Bit Eggplant#990066
- Aristocratic Velvet#980B4A
- Aztec Warrior#BB0066
- Bane of Royalty#871466
- Beet Red#7E203F
- Berry#990F4B
- Bindi Red#B0003C
- Bordeaux#7B002C
- Botticelli#B70272
- Bruise#7E4071
- Castro#44232F
- Cranberry#9E003A
- Drops of God#571E2F
- Eminence#6E3974
- Evil Forces#770022
- Fabric of Love#AA1177
- Fancy Red Wine#B40441
- Flirt#7A2E4D
Questions
What is the hex code for Ruby?
#CA0147 — RGB 202, 1, 71, HSL 339°, 99%, 40%.
Is Ruby a warm or cool color?
Warm — its hue sits at 339° on the color wheel.