#C040C1#C040C1

#C040C1 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.0% C 0.218 H 327.5°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#C040C1
RGBrgb(192, 64, 193)
HSLhsl(300, 51%, 50%)
HSVhsv(300, 67%, 76%)
CMYKcmyk(0.5%, 66.8%, 0%, 24.3%)
CIE-LABlab(50.36, 66.06, -42.22)
CIE-LCHlch(50.36, 78.40, 327.42°)
OKLaboklab(60.05% 0.1837 -0.1168)
OKLCHoklch(60.05% 0.218 327.5)
XYZxyz(33.1968, 18.7258, 52.3077)
Luminance0.1872 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C040C1 #41C140
analogous
#7F40C1 #C040C1 #C14081
triadic
#C040C1 #C1C040 #40C1C0
tetradic
#C040C1 #C17F40 #41C140 #4081C1
square
#C040C1 #C17F40 #41C140 #4081C1
split-complementary
#C040C1 #81C140 #40C17F
monochromatic
#652166 #933094 #C040C1 #CF6ED0 #DE9CDF

Accessibility & contrast

On white

4.43
#C040C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#C040C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C040C1
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C040C1#FFFFFF#000000##000000
##C040C11.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C6DC5
Deuteranopia (green-blind)
#607EBE
Tritanopia (blue-blind)
#C6527C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #c040c1;
/* rgb */ color: rgb(192, 64, 193);
/* oklch */ color: oklch(60.0% 0.218 327.5);
Tailwind
colors: {
  custom: {
    50: '#d77fd4',
    500: '#c040c1',
    950: '#000000',
  },
}
SCSS
$custom: #c040c1;
$custom-light: #d77fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#c040c1",
  "rgb": {
    "r": 192,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 299.535,
    "s": 50.988,
    "l": 50.392
  },
  "oklch": {
    "l": 0.60049,
    "c": 0.21774,
    "h": 327.5
  },
  "luminance": 0.18724
}

Semantic roles & 50–950 ramp

primary
#C040C1
secondary
#92CB92
accent
#DA4D4E
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #C040C1

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

Preview Lab → · Contrast checker → · Palette generator →

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