#C040D9#C040D9

#C040D9 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.4% C 0.237 H 320.6°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#C040D9
RGBrgb(192, 64, 217)
HSLhsl(290, 67%, 55%)
HSVhsv(290, 71%, 85%)
CMYKcmyk(11.5%, 70.5%, 0%, 14.9%)
CIE-LABlab(51.71, 70.24, -53.86)
CIE-LCHlch(51.71, 88.51, 322.52°)
OKLaboklab(61.44% 0.1834 -0.1507)
OKLCHoklch(61.44% 0.237 320.6)
XYZxyz(36.0945, 19.8849, 67.5691)
Luminance0.1988 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040D9 #59D940
analogous
#7340D9 #C040D9 #D940A6
triadic
#C040D9 #D9C040 #40D9C0
tetradic
#C040D9 #D97340 #59D940 #40A6D9
square
#C040D9 #D97340 #59D940 #40A6D9
split-complementary
#C040D9 #A6D940 #40D973
monochromatic
#731A84 #9F24B7 #C040D9 #D173E3 #E2A6ED

Accessibility & contrast

On white

4.22
#C040D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#C040D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040D9
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040D9#FFFFFF#000000##000000
##C040D91.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DD
Deuteranopia (green-blind)
#5080D5
Tritanopia (blue-blind)
#C15D89
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c040d9;
/* rgb */ color: rgb(192, 64, 217);
/* oklch */ color: oklch(61.4% 0.237 320.6);
Tailwind
colors: {
  custom: {
    50: '#d780e5',
    500: '#c040d9',
    950: '#000000',
  },
}
SCSS
$custom: #c040d9;
$custom-light: #d780e5;
$custom-dark: #000000;
JSON
{
  "hex": "#c040d9",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 290.196,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.61443,
    "c": 0.23739,
    "h": 320.6
  },
  "luminance": 0.19883
}

Semantic roles & 50–950 ramp

primary
#C040D9
secondary
#A5DA9A
accent
#EA3E5A
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #C040D9

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#C040D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva