AfoliOpen Afoli →

Ruby color #CA0147

Ruby is a color name from the xkcd color survey for the hex code #CA0147 — RGB 202, 1, 71, HSL 339°, 99%, 40%.

Open in Afoli Colour tools →

#CA0147Ruby

Color codes

HEX
#CA0147
RGB
rgb(202, 1, 71)
HSL
hsl(339, 99%, 40%)
CMYK
0%, 100%, 65%, 21%
OKLCH
oklch(53.4% 0.213 13.6)

Tints and shades

#FFF1F2#FFCACE#FFA1AA#FF7085#F13F65#D3184E#AE003C#87002C#61001E#3E0010#1F0004

Color harmonies

Complementary
#CA0147#007D7C
Analogous
#B91B8B#CA0147#B34500
Triadic
#CA0147#467F00#006CCA
Split complementary
#CA0147#00815A#007997
Tetradic
#CA0147#796F00#007D7C#644EE1

Contrast with text

PairWCAG 2.x ratioAPCA LcResult
Ruby text on white5.82 : 176AA — body text
Ruby text on black3.61 : 1-25AA for large text only
White text on Ruby5.82 : 1-82AA — body text
Black text on Ruby3.61 : 128AA for large text only

WCAG 2.x needs 4.5 : 1 for body text and 3 : 1 for large text; APCA asks for |Lc| 75 for body text and 60 for large text.

Palettes with this color

Frequently asked questions

What is the hex code of Ruby?

Ruby has the hex code #CA0147, which is RGB 202, 1, 71 and HSL 339°, 99%, 40%.

Which text color reads best on Ruby?

White text: contrast 5.82 : 1 (black text: 3.61 : 1).

Which colors go well with Ruby?

Its complementary color is #007D7C; analogous colors are #B91B8B and #B34500; a triadic set adds #467F00 and #006CCA.

Similar colors

Sources and licences

Updated November 21, 2026