#C040C6#C040C6

#C040C6 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.3% C 0.222 H 326.0°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#C040C6
RGBrgb(192, 64, 198)
HSLhsl(297, 54%, 51%)
HSVhsv(297, 68%, 78%)
CMYKcmyk(3%, 67.7%, 0%, 22.4%)
CIE-LABlab(50.63, 66.91, -44.68)
CIE-LCHlch(50.63, 80.46, 326.26°)
OKLaboklab(60.33% 0.1838 -0.124)
OKLCHoklch(60.33% 0.222 326)
XYZxyz(33.7640, 18.9527, 55.2950)
Luminance0.1895 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040C6 #46C640
analogous
#7D40C6 #C040C6 #C64089
triadic
#C040C6 #C6C040 #40C6C0
tetradic
#C040C6 #C67D40 #46C640 #4089C6
square
#C040C6 #C67D40 #46C640 #4089C6
split-complementary
#C040C6 #89C640 #40C67D
monochromatic
#68206C #962E9B #C040C6 #D06FD4 #DF9EE2

Accessibility & contrast

On white

4.38
#C040C6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#C040C6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040C6
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040C6#FFFFFF#000000##000000
##C040C61.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#256ECA
Deuteranopia (green-blind)
#5D7EC3
Tritanopia (blue-blind)
#C5547E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c040c6;
/* rgb */ color: rgb(192, 64, 198);
/* oklch */ color: oklch(60.3% 0.222 326.0);
Tailwind
colors: {
  custom: {
    50: '#d77fd8',
    500: '#c040c6',
    950: '#000000',
  },
}
SCSS
$custom: #c040c6;
$custom-light: #d77fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#c040c6",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 297.313,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.60327,
    "c": 0.22174,
    "h": 326
  },
  "luminance": 0.1895
}

Semantic roles & 50–950 ramp

primary
#C040C6
secondary
#96CE93
accent
#DD4A51
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C040C6

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

Preview Lab → · Contrast checker → · Palette generator →

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