#CD1158

Closest named color: Ruby (#CA0147). oklch(54.8% 0.213 8.4), rgb(205, 17, 88).

Aa

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

About this color

#CD1158 is a medium-dark, vivid red. In OKLCH its lightness is 55%, its chroma 0.213 and its hue 8°. Its hue sits on the warm side of the wheel. The nearest named color is Ruby (#CA0147), ΔE 0.023 away. White text reads best on it, at 5.50:1.

Hue familyReds
Lightnessmedium-dark (55%)
Chromavivid (0.213)
Temperaturewarm
Nearest nameRuby (#CA0147)
Black text3.81:1
White text5.50:1

Values

HEX#CD1158
RGBrgb(205, 17, 88)
HSLhsl(337, 85%, 44%)
OKLCHoklch(54.8% 0.213 8.4)

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 #CD1158 5.50:1 AA Lc -80.6 Fine for body text
Black text on #CD1158 3.81:1 AA large text Lc 28.8 Dividers and decoration only
#CD1158 text on white 5.50:1 AA Lc 75.3 Fine for body text
#CD1158 text on black 3.81:1 AA large text Lc -26.5 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

    #FEF2F4

    oklch(97.1% 0.013 5.8)

  2. Step 100

    100

    #FCE3E6

    oklch(93.7% 0.028 9.4)

  3. Step 200

    200

    #FACBD2

    oklch(88.5% 0.054 8.2)

  4. Step 300

    300

    #F7A7B4

    oklch(80.9% 0.096 8.8)

  5. Step 400

    400

    #EE738E

    oklch(70.6% 0.153 8)

  6. Step 500

    500

    #E54672

    oklch(63.1% 0.196 8.3)

  7. Step 600

    600 (this color)

    #CD1158

    oklch(54.8% 0.213 8.4)

  8. Step 700

    700

    #B3004A

    oklch(49.1% 0.197 8.5)

  9. Step 800

    800

    #920C3D

    oklch(42.8% 0.164 8.4)

  10. Step 900

    900

    #751834

    oklch(37.7% 0.127 8.3)

  11. Step 950

    950

    #45111E

    oklch(27% 0.08 9.2)

Export this scale for Tailwind in the Tailwind colors tool

#CD1158 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)#4F52590.242
Deuteranopia (no green cones)#7D75540.217
Tritanopia (no blue cones)#E000360.058
Achromatopsia (no color)#6969690.214

Harmonies

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

Complementary

The opposite hue (180°).

  • #CD1158

    #CD1158

    oklch(54.8% 0.213 8.4)

  • #00827C

    #00827C

    oklch(54.7% 0.095 189.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #CD1158

    #CD1158

    oklch(54.8% 0.213 8.4)

  • #B9279A

    #B9279A

    oklch(54.9% 0.213 338.5)

  • #C23D00

    #C23D00

    oklch(54.8% 0.178 38.3)

Open the analogous palette in the generator

Split complementary

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

  • #CD1158

    #CD1158

    oklch(54.8% 0.213 8.4)

  • #008754

    #008754

    oklch(54.9% 0.128 158.3)

  • #007E97

    #007E97

    oklch(54.8% 0.098 218.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #CD1158

    #CD1158

    oklch(54.8% 0.213 8.4)

  • #578000

    #578000

    oklch(54.9% 0.145 128.5)

  • #0074C3

    #0074C3

    oklch(54.7% 0.15 248.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #CD1158

    #CD1158

    oklch(54.8% 0.213 8.4)

  • #827100

    #827100

    oklch(54.8% 0.113 98.8)

  • #00827C

    #00827C

    oklch(54.7% 0.095 189.1)

  • #5C57E8

    #5C57E8

    oklch(54.8% 0.212 278.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #CD1158 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.