#C040C8#C040C8

#C040C8 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.4% C 0.223 H 325.4°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#C040C8
RGBrgb(192, 64, 200)
HSLhsl(296, 55%, 52%)
HSVhsv(296, 68%, 78%)
CMYKcmyk(4%, 68%, 0%, 21.6%)
CIE-LABlab(50.74, 67.25, -45.66)
CIE-LCHlch(50.74, 81.29, 325.82°)
OKLaboklab(60.44% 0.1839 -0.1268)
OKLCHoklch(60.44% 0.223 325.4)
XYZxyz(33.9962, 19.0455, 56.5179)
Luminance0.1904 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040C8 #48C840
analogous
#7C40C8 #C040C8 #C8408C
triadic
#C040C8 #C8C040 #40C8C0
tetradic
#C040C8 #C87C40 #48C840 #408CC8
square
#C040C8 #C87C40 #48C840 #408CC8
split-complementary
#C040C8 #8CC840 #40C87C
monochromatic
#69206E #972D9D #C040C8 #D070D6 #DF9FE3

Accessibility & contrast

On white

4.37
#C040C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#C040C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040C8
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040C8#FFFFFF#000000##000000
##C040C81.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#226FCC
Deuteranopia (green-blind)
#5C7EC5
Tritanopia (blue-blind)
#C4557F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c040c8;
/* rgb */ color: rgb(192, 64, 200);
/* oklch */ color: oklch(60.4% 0.223 325.4);
Tailwind
colors: {
  custom: {
    50: '#d77fd9',
    500: '#c040c8',
    950: '#000000',
  },
}
SCSS
$custom: #c040c8;
$custom-light: #d77fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#c040c8",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 296.471,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.6044,
    "c": 0.22337,
    "h": 325.4
  },
  "luminance": 0.19043
}

Semantic roles & 50–950 ramp

primary
#C040C8
secondary
#98D094
accent
#DF4952
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B15
muted
#837C83

Preview Lab

Preview with #C040C8

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

Preview Lab → · Contrast checker → · Palette generator →

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