#C040B4

Closest named color: Purpley Pink (#C83CB9). oklch(59.4% 0.208 331.8), rgb(192, 64, 180).

Aa

Black text reads best on this color (4.63:1).

About this color

#C040B4 is a medium-dark, vivid purple. In OKLCH its lightness is 59%, its chroma 0.208 and its hue 332°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Purpley Pink (#C83CB9), ΔE 0.017 away. Black text reads best on it, at 4.63:1.

Hue familyPurples
Lightnessmedium-dark (59%)
Chromavivid (0.208)
Temperaturein between
Nearest namePurpley Pink (#C83CB9)
Black text4.63:1
White text4.53:1

Values

HEX#C040B4
RGBrgb(192, 64, 180)
HSLhsl(306, 50%, 50%)
OKLCHoklch(59.4% 0.208 331.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 #C040B4 4.53:1 AA Lc -76.0 Fine for body text
Black text on #C040B4 4.63:1 AA Lc 33.6 Non-text elements, placeholder text
#C040B4 text on white 4.53:1 AA Lc 70.5 Content text, not long reading
#C040B4 text on black 4.63:1 AA Lc -31.2 Non-text elements, placeholder text

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 500.

  1. Step 50

    50

    #FBF2FA

    oklch(97% 0.014 329.1)

  2. Step 100

    100

    #F6E3F3

    oklch(93.6% 0.029 330.9)

  3. Step 200

    200

    #F0CCEA

    oklch(88.5% 0.056 331.7)

  4. Step 300

    300

    #E8A8DE

    oklch(80.9% 0.103 332)

  5. Step 400

    400

    #D977CD

    oklch(70.7% 0.161 331.8)

  6. Step 500

    500 (this color)

    #C040B4

    oklch(59.4% 0.208 331.8)

  7. Step 600

    600

    #B826AC

    oklch(55.6% 0.225 331.9)

  8. Step 700

    700

    #9E1494

    oklch(49.1% 0.21 331.8)

  9. Step 800

    800

    #801778

    oklch(42.6% 0.173 331.7)

  10. Step 900

    900

    #681D61

    oklch(37.8% 0.135 331.9)

  11. Step 950

    950

    #3D1339

    oklch(27.1% 0.085 331.5)

Export this scale for Tailwind in the Tailwind colors tool

#C040B4 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)#396BB70.220
Deuteranopia (no green cones)#667DB10.190
Tritanopia (no blue cones)#C84D750.109
Achromatopsia (no color)#7676760.209

Harmonies

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

Complementary

The opposite hue (180°).

  • #C040B4

    #C040B4

    oklch(59.4% 0.208 331.8)

  • #00974C

    #00974C

    oklch(59.2% 0.156 152)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #C040B4

    #C040B4

    oklch(59.4% 0.208 331.8)

  • #9755E3

    #9755E3

    oklch(59.5% 0.208 301.8)

  • #D93175

    #D93175

    oklch(59.4% 0.208 1.9)

Open the analogous palette in the generator

Split complementary

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

  • #C040B4

    #C040B4

    oklch(59.4% 0.208 331.8)

  • #718B00

    #718B00

    oklch(59.5% 0.144 121.9)

  • #009383

    #009383

    oklch(59.5% 0.107 181.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #C040B4

    #C040B4

    oklch(59.4% 0.208 331.8)

  • #987B00

    #987B00

    oklch(59.3% 0.121 92.2)

  • #008EA2

    #008EA2

    oklch(59.4% 0.103 212)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #C040B4

    #C040B4

    oklch(59.4% 0.208 331.8)

  • #B76800

    #B76800

    oklch(59.4% 0.137 61.7)

  • #00974C

    #00974C

    oklch(59.2% 0.156 152)

  • #0086CA

    #0086CA

    oklch(59.4% 0.141 241.9)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #C040B4.

Similar named colors

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

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