#C02E9A

Closest named color: Medium Violet Red (#C71585). oklch(56.5% 0.21 340.8), rgb(192, 46, 154).

Aa

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

About this color

#C02E9A is a medium-dark, vivid pink. In OKLCH its lightness is 57%, its chroma 0.210 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.037 away. White text reads best on it, at 5.12:1.

Hue familyPinks
Lightnessmedium-dark (57%)
Chromavivid (0.210)
Temperaturewarm
Nearest nameMedium Violet Red (#C71585)
Black text4.09:1
White text5.12:1

Values

HEX#C02E9A
RGBrgb(192, 46, 154)
HSLhsl(316, 61%, 47%)
OKLCHoklch(56.5% 0.21 340.8)

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 #C02E9A 5.12:1 AA Lc -79.4 Fine for body text
Black text on #C02E9A 4.09:1 AA large text Lc 30.1 Non-text elements, placeholder text
#C02E9A text on white 5.12:1 AA Lc 74.0 Content text, not long reading
#C02E9A text on black 4.09:1 AA large text Lc -27.7 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

    #F7E3EF

    oklch(93.5% 0.027 340.9)

  3. Step 200

    200

    #F2CCE4

    oklch(88.5% 0.053 340)

  4. Step 300

    300

    #EBA9D3

    oklch(81% 0.094 340.9)

  5. Step 400

    400

    #DE78BD

    oklch(70.8% 0.151 340.7)

  6. Step 500

    500

    #D24FAC

    oklch(63.2% 0.193 340.8)

  7. Step 600

    600 (this color)

    #C02E9A

    oklch(56.5% 0.21 340.8)

  8. Step 700

    700

    #A21A81

    oklch(49% 0.195 340.7)

  9. Step 800

    800

    #841A69

    oklch(42.7% 0.162 340.7)

  10. Step 900

    900

    #6A1E55

    oklch(37.6% 0.126 340.7)

  11. Step 950

    950

    #3F1332

    oklch(27% 0.081 340.9)

Export this scale for Tailwind in the Tailwind colors tool

#C02E9A 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)#3A5F9D0.233
Deuteranopia (no green cones)#6A76970.200
Tritanopia (no blue cones)#CC32610.096
Achromatopsia (no color)#6E6E6E0.212

Harmonies

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

Complementary

The opposite hue (180°).

  • #C02E9A

    #C02E9A

    oklch(56.5% 0.21 340.8)

  • #008C5D

    #008C5D

    oklch(56.5% 0.126 160.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #C02E9A

    #C02E9A

    oklch(56.5% 0.21 340.8)

  • #9C44CE

    #9C44CE

    oklch(56.5% 0.209 310.7)

  • #D31F57

    #D31F57

    oklch(56.4% 0.21 10.8)

Open the analogous palette in the generator

Split complementary

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

  • #C02E9A

    #C02E9A

    oklch(56.5% 0.21 340.8)

  • #558700

    #558700

    oklch(56.6% 0.154 130.8)

  • #008883

    #008883

    oklch(56.6% 0.098 190.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #C02E9A

    #C02E9A

    oklch(56.5% 0.21 340.8)

  • #867700

    #867700

    oklch(56.6% 0.118 100.5)

  • #0083A0

    #0083A0

    oklch(56.5% 0.103 220.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #C02E9A

    #C02E9A

    oklch(56.5% 0.21 340.8)

  • #A26700

    #A26700

    oklch(56.4% 0.122 70.6)

  • #008C5D

    #008C5D

    oklch(56.5% 0.126 160.9)

  • #0078D1

    #0078D1

    oklch(56.6% 0.163 250.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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