#C5228F

Closest named color: Medium Violet Red (#C71585). oklch(56% 0.217 345.9), rgb(197, 34, 143).

Aa

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

About this color

#C5228F is a medium-dark, vivid red. In OKLCH its lightness is 56%, its chroma 0.217 and its hue 346°. Its hue sits on the warm side of the wheel. The nearest named color is Medium Violet Red (#C71585), ΔE 0.017 away. White text reads best on it, at 5.25:1.

Hue familyReds
Lightnessmedium-dark (56%)
Chromavivid (0.217)
Temperaturewarm
Nearest nameMedium Violet Red (#C71585)
Black text3.99:1
White text5.25:1

Values

HEX#C5228F
RGBrgb(197, 34, 143)
HSLhsl(320, 71%, 45%)
OKLCHoklch(56% 0.217 345.9)

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 #C5228F 5.25:1 AA Lc -79.8 Fine for body text
Black text on #C5228F 3.99:1 AA large text Lc 29.7 Dividers and decoration only
#C5228F text on white 5.25:1 AA Lc 74.4 Content text, not long reading
#C5228F text on black 3.99:1 AA large text Lc -27.3 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

    #FDF2F7

    oklch(97.1% 0.013 347.9)

  2. Step 100

    100

    #F9E3EE

    oklch(93.7% 0.028 345.9)

  3. Step 200

    200

    #F5CBE1

    oklch(88.4% 0.055 345.4)

  4. Step 300

    300

    #EFA7CE

    oklch(80.9% 0.098 345.8)

  5. Step 400

    400

    #E474B5

    oklch(70.7% 0.157 346)

  6. Step 500

    500

    #D849A3

    oklch(63% 0.2 345.7)

  7. Step 600

    600 (this color)

    #C5228F

    oklch(56% 0.217 345.9)

  8. Step 700

    700

    #A80C78

    oklch(49% 0.202 346)

  9. Step 800

    800

    #891362

    oklch(42.8% 0.167 346)

  10. Step 900

    900

    #6E1A50

    oklch(37.6% 0.131 345.8)

  11. Step 950

    950

    #41112F

    oklch(27% 0.083 345.7)

Export this scale for Tailwind in the Tailwind colors tool

#C5228F 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)#3C5B920.245
Deuteranopia (no green cones)#6E768C0.212
Tritanopia (no blue cones)#D31C580.090
Achromatopsia (no color)#6C6C6C0.219

Harmonies

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

Complementary

The opposite hue (180°).

  • #C5228F

    #C5228F

    oklch(56% 0.217 345.9)

  • #008A64

    #008A64

    oklch(56.1% 0.117 165.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #C5228F

    #C5228F

    oklch(56% 0.217 345.9)

  • #A33BC8

    #A33BC8

    oklch(56% 0.217 315.7)

  • #D61247

    #D61247

    oklch(56.1% 0.218 15.9)

Open the analogous palette in the generator

Split complementary

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

  • #C5228F

    #C5228F

    oklch(56% 0.217 345.9)

  • #428900

    #428900

    oklch(56.1% 0.166 135.8)

  • #008587

    #008587

    oklch(55.9% 0.095 196.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #C5228F

    #C5228F

    oklch(56% 0.217 345.9)

  • #7E7800

    #7E7800

    oklch(56% 0.12 106.2)

  • #0081A4

    #0081A4

    oklch(56.1% 0.107 225.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #C5228F

    #C5228F

    oklch(56% 0.217 345.9)

  • #9C6900

    #9C6900

    oklch(56.1% 0.118 75.5)

  • #008A64

    #008A64

    oklch(56.1% 0.117 165.5)

  • #0071E0

    #0071E0

    oklch(56.1% 0.19 255.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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