#CC0251

Closest named color: Ruby (#CA0147). oklch(54.1% 0.215 10.2), rgb(204, 2, 81).

Aa

White text reads best on this color (5.68:1).

About this color

#CC0251 is a medium-dark, vivid red. In OKLCH its lightness is 54%, its chroma 0.215 and its hue 10°. Its hue sits on the warm side of the wheel. The nearest named color is Ruby (#CA0147), ΔE 0.014 away. White text reads best on it, at 5.68:1.

Hue familyReds
Lightnessmedium-dark (54%)
Chromavivid (0.215)
Temperaturewarm
Nearest nameRuby (#CA0147)
Black text3.69:1
White text5.68:1

Values

HEX#CC0251
RGBrgb(204, 2, 81)
HSLhsl(337, 98%, 40%)
OKLCHoklch(54.1% 0.215 10.2)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #CC0251 5.68:1 AA Lc -81.2 Fine for body text
Black text on #CC0251 3.69:1 AA large text Lc 28.3 Dividers and decoration only
#CC0251 text on white 5.68:1 AA Lc 75.8 Fine for body text
#CC0251 text on black 3.69:1 AA large text Lc -25.9 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 600.

  1. Step 50

    50

    #FEF2F3

    oklch(97.1% 0.013 11.5)

  2. Step 100

    100

    #FCE3E5

    oklch(93.7% 0.028 12.1)

  3. Step 200

    200

    #FACBD1

    oklch(88.4% 0.054 9.6)

  4. Step 300

    300

    #F8A7B2

    oklch(81% 0.096 10.5)

  5. Step 400

    400

    #F0738A

    oklch(70.8% 0.155 10.4)

  6. Step 500

    500

    #E6456D

    oklch(63.1% 0.198 10.3)

  7. Step 600

    600 (this color)

    #CC0251

    oklch(54.1% 0.215 10.2)

  8. Step 700

    700

    #B40046

    oklch(49.2% 0.197 10.4)

  9. Step 800

    800

    #930839

    oklch(42.7% 0.166 10.4)

  10. Step 900

    900

    #761731

    oklch(37.7% 0.129 10.5)

  11. Step 950

    950

    #46101D

    oklch(27.1% 0.082 10.3)

Export this scale for Tailwind in the Tailwind colors tool

#CC0251 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#4E4F520.244
Deuteranopia (no green cones)#7D744C0.221
Tritanopia (no blue cones)#E0002F0.060
Achromatopsia (no color)#6767670.217

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #CC0251

    #CC0251

    oklch(54.1% 0.215 10.2)

  • #00807B

    #00807B

    oklch(54.1% 0.093 190)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #CC0251

    #CC0251

    oklch(54.1% 0.215 10.2)

  • #B91F94

    #B91F94

    oklch(54.1% 0.216 340.5)

  • #BB4000

    #BB4000

    oklch(54% 0.169 40.2)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #CC0251

    #CC0251

    oklch(54.1% 0.215 10.2)

  • #008456

    #008456

    oklch(54.1% 0.122 160.2)

  • #007B96

    #007B96

    oklch(53.9% 0.098 220.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #CC0251

    #CC0251

    oklch(54.1% 0.215 10.2)

  • #517E00

    #517E00

    oklch(53.9% 0.145 130.1)

  • #0071C4

    #0071C4

    oklch(54.1% 0.154 250.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #CC0251

    #CC0251

    oklch(54.1% 0.215 10.2)

  • #7E7000

    #7E7000

    oklch(54.1% 0.113 100.7)

  • #00807B

    #00807B

    oklch(54.1% 0.093 190)

  • #5F52E6

    #5F52E6

    oklch(54.1% 0.215 280.4)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #CC0251, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #CC0251 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.