#C31E98

Closest named color: Medium Violet Red (#C71585). oklch(55.9% 0.224 341.9), rgb(195, 30, 152).

Aa

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

About this color

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

Hue familyPinks
Lightnessmedium-dark (56%)
Chromavivid (0.224)
Temperaturewarm
Nearest nameMedium Violet Red (#C71585)
Black text3.95:1
White text5.30:1

Values

HEX#C31E98
RGBrgb(195, 30, 152)
HSLhsl(316, 73%, 44%)
OKLCHoklch(55.9% 0.224 341.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 #C31E98 5.30:1 AA Lc -80.0 Fine for body text
Black text on #C31E98 3.95:1 AA large text Lc 29.5 Dividers and decoration only
#C31E98 text on white 5.30:1 AA Lc 74.6 Content text, not long reading
#C31E98 text on black 3.95:1 AA large text Lc -27.1 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

    #FCF2F8

    oklch(97.1% 0.013 340.5)

  2. Step 100

    100

    #F9E3EF

    oklch(93.7% 0.029 343.6)

  3. Step 200

    200

    #F4CBE4

    oklch(88.4% 0.056 341.2)

  4. Step 300

    300

    #EEA7D3

    oklch(80.9% 0.1 341.9)

  5. Step 400

    400

    #E274BD

    oklch(70.7% 0.161 341.7)

  6. Step 500

    500

    #D748AC

    oklch(63.1% 0.206 341.9)

  7. Step 600

    600 (this color)

    #C31E98

    oklch(55.9% 0.224 341.9)

  8. Step 700

    700

    #A70681

    oklch(49.1% 0.209 341.9)

  9. Step 800

    800

    #881069

    oklch(42.8% 0.173 341.9)

  10. Step 900

    900

    #6D1955

    oklch(37.6% 0.134 341.9)

  11. Step 950

    950

    #401132

    oklch(26.9% 0.085 341.5)

Export this scale for Tailwind in the Tailwind colors tool

#C31E98 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)#325B9B0.253
Deuteranopia (no green cones)#6975940.216
Tritanopia (no blue cones)#D0225C0.101
Achromatopsia (no color)#6B6B6B0.226

Harmonies

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

Complementary

The opposite hue (180°).

  • #C31E98

    #C31E98

    oklch(55.9% 0.224 341.9)

  • #008A5D

    #008A5D

    oklch(56% 0.123 161.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #C31E98

    #C31E98

    oklch(55.9% 0.224 341.9)

  • #9F3AD0

    #9F3AD0

    oklch(55.9% 0.224 312.1)

  • #D60050

    #D60050

    oklch(55.9% 0.223 12)

Open the analogous palette in the generator

Split complementary

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

  • #C31E98

    #C31E98

    oklch(55.9% 0.224 341.9)

  • #508500

    #508500

    oklch(55.8% 0.154 131.8)

  • #008682

    #008682

    oklch(56% 0.096 191.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #C31E98

    #C31E98

    oklch(55.9% 0.224 341.9)

  • #827600

    #827600

    oklch(55.9% 0.117 102.4)

  • #00819F

    #00819F

    oklch(55.9% 0.103 221.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #C31E98

    #C31E98

    oklch(55.9% 0.224 341.9)

  • #9F6600

    #9F6600

    oklch(55.9% 0.12 71.4)

  • #008A5D

    #008A5D

    oklch(56% 0.123 161.6)

  • #0075D1

    #0075D1

    oklch(55.9% 0.166 251.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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