#C042D9#C042D9

#C042D9 is a mid, highly saturated purple. Relative luminance 0.201; OKLCH L 61.6% C 0.235 H 320.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#C042D9
RGBrgb(192, 66, 217)
HSLhsl(290, 67%, 55%)
HSVhsv(290, 70%, 85%)
CMYKcmyk(11.5%, 69.6%, 0%, 14.9%)
CIE-LABlab(51.97, 69.50, -53.44)
CIE-LCHlch(51.97, 87.67, 322.44°)
OKLaboklab(61.63% 0.1814 -0.1495)
OKLCHoklch(61.63% 0.235 320.5)
XYZxyz(36.2093, 20.1145, 67.6074)
Luminance0.2011 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042D9 #5BD942
analogous
#7442D9 #C042D9 #D942A7
triadic
#C042D9 #D9C042 #42D9C0
tetradic
#C042D9 #D97442 #5BD942 #42A7D9
square
#C042D9 #D97442 #5BD942 #42A7D9
split-complementary
#C042D9 #A7D942 #42D974
monochromatic
#741B86 #A025B9 #C042D9 #D175E3 #E2A8ED

Accessibility & contrast

On white

4.18
#C042D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#C042D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042D9
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042D9#FFFFFF#000000##000000
##C042D91.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073DD
Deuteranopia (green-blind)
#5180D5
Tritanopia (blue-blind)
#C15E89
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #c042d9;
/* rgb */ color: rgb(192, 66, 217);
/* oklch */ color: oklch(61.6% 0.235 320.5);
Tailwind
colors: {
  custom: {
    50: '#d781e5',
    500: '#c042d9',
    950: '#000000',
  },
}
SCSS
$custom: #c042d9;
$custom-light: #d781e5;
$custom-dark: #000000;
JSON
{
  "hex": "#c042d9",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 217
  },
  "hsl": {
    "h": 290.066,
    "s": 66.52,
    "l": 55.49
  },
  "oklch": {
    "l": 0.61629,
    "c": 0.23511,
    "h": 320.5
  },
  "luminance": 0.20113
}

Semantic roles & 50–950 ramp

primary
#C042D9
secondary
#A6DB9C
accent
#E93E5B
background
#FDF8FE
surface
#FBEFFC
border
#D4CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #C042D9

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

Preview Lab → · Contrast checker → · Palette generator →

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