#C31F9A

Closest named color: Medium Violet Red (#C71585). oklch(56% 0.225 341.2), rgb(195, 31, 154).

Aa

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

About this color

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

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

Values

HEX#C31F9A
RGBrgb(195, 31, 154)
HSLhsl(315, 73%, 44%)
OKLCHoklch(56% 0.225 341.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 #C31F9A 5.27:1 AA Lc -79.9 Fine for body text
Black text on #C31F9A 3.98:1 AA large text Lc 29.6 Dividers and decoration only
#C31F9A text on white 5.27:1 AA Lc 74.5 Content text, not long reading
#C31F9A text on black 3.98:1 AA large text Lc -27.2 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

    #F8E3F0

    oklch(93.6% 0.028 340)

  3. Step 200

    200

    #F4CBE4

    oklch(88.4% 0.056 341.2)

  4. Step 300

    300

    #EEA7D4

    oklch(81% 0.101 341.2)

  5. Step 400

    400

    #E274BE

    oklch(70.8% 0.161 341.2)

  6. Step 500

    500

    #D648AD

    oklch(63% 0.206 341.2)

  7. Step 600

    600 (this color)

    #C31F9A

    oklch(56% 0.225 341.2)

  8. Step 700

    700

    #A70682

    oklch(49.2% 0.209 341.5)

  9. Step 800

    800

    #87106A

    oklch(42.6% 0.173 341.1)

  10. Step 900

    900

    #6D1956

    oklch(37.7% 0.135 341.2)

  11. Step 950

    950

    #401132

    oklch(26.9% 0.085 341.5)

Export this scale for Tailwind in the Tailwind colors tool

#C31F9A 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)#325B9D0.252
Deuteranopia (no green cones)#6875970.215
Tritanopia (no blue cones)#CF245D0.102
Achromatopsia (no color)#6C6C6C0.227

Harmonies

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

Complementary

The opposite hue (180°).

  • #C31F9A

    #C31F9A

    oklch(56% 0.225 341.2)

  • #008A5C

    #008A5C

    oklch(55.9% 0.124 161.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #C31F9A

    #C31F9A

    oklch(56% 0.225 341.2)

  • #9E3BD2

    #9E3BD2

    oklch(56% 0.225 311.2)

  • #D70053

    #D70053

    oklch(56.1% 0.224 11.1)

Open the analogous palette in the generator

Split complementary

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

  • #C31F9A

    #C31F9A

    oklch(56% 0.225 341.2)

  • #528600

    #528600

    oklch(56.1% 0.154 131.4)

  • #008682

    #008682

    oklch(56% 0.096 191.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #C31F9A

    #C31F9A

    oklch(56% 0.225 341.2)

  • #847600

    #847600

    oklch(56.1% 0.117 101.1)

  • #00829F

    #00829F

    oklch(56.2% 0.103 220.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #C31F9A

    #C31F9A

    oklch(56% 0.225 341.2)

  • #A06600

    #A06600

    oklch(56% 0.121 70.8)

  • #008A5C

    #008A5C

    oklch(55.9% 0.124 161.1)

  • #0076D0

    #0076D0

    oklch(56% 0.164 251.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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