Huebook

Ruby

Ruby is a dark, saturated magenta color with the hex code #CA0147 (hue 339°, saturation 99%, lightness 40%).

#CA0147
NameHEXRGBHSLCMYKOKLCH
Ruby#CA0147202, 1, 71339°, 99%, 40%0, 100, 65, 2153.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.

Ruby
  • HEX#CA0147
  • RGBrgb(202 1 71)
  • HSLhsl(339 99% 40%)

Variations of Ruby

Text on Ruby

White textThe quick brown fox5.82:1 · AA pass · AAA large text only
Black textThe quick brown fox3.61:1 · AA large text only · AAA fail

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

Normal #CA0147
Protanopia #4F4D48
Deuteranopia #7C7242
Tritanopia #DE0029

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

#FFCCDE
#FE80AC
#FE347A
#E40150
#980136
#4C001B

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.

Nearest CSS named colors

Gradients with Ruby

Similar dark pink colors

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.