#C042C8#C042C8

#C042C8 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.6% C 0.221 H 325.4°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#C042C8
RGBrgb(192, 66, 200)
HSLhsl(296, 55%, 52%)
HSVhsv(296, 67%, 78%)
CMYKcmyk(4%, 67%, 0%, 21.6%)
CIE-LABlab(51.01, 66.50, -45.24)
CIE-LCHlch(51.01, 80.43, 325.77°)
OKLaboklab(60.63% 0.1818 -0.1256)
OKLCHoklch(60.63% 0.221 325.4)
XYZxyz(34.1110, 19.2752, 56.5562)
Luminance0.1927 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042C8 #4AC842
analogous
#7D42C8 #C042C8 #C8428D
triadic
#C042C8 #C8C042 #42C8C0
tetradic
#C042C8 #C87D42 #4AC842 #428DC8
square
#C042C8 #C87D42 #4AC842 #428DC8
split-complementary
#C042C8 #8DC842 #42C87D
monochromatic
#6B206F #982E9F #C042C8 #D071D6 #E0A1E4

Accessibility & contrast

On white

4.33
#C042C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#C042C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042C8
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042C8#FFFFFF#000000##000000
##C042C81.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2670CC
Deuteranopia (green-blind)
#5D7FC5
Tritanopia (blue-blind)
#C45780
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #c042c8;
/* rgb */ color: rgb(192, 66, 200);
/* oklch */ color: oklch(60.6% 0.221 325.4);
Tailwind
colors: {
  custom: {
    50: '#d780d9',
    500: '#c042c8',
    950: '#000000',
  },
}
SCSS
$custom: #c042c8;
$custom-light: #d780d9;
$custom-dark: #000000;
JSON
{
  "hex": "#c042c8",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 296.418,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60632,
    "c": 0.22095,
    "h": 325.4
  },
  "luminance": 0.19273
}

Semantic roles & 50–950 ramp

primary
#C042C8
secondary
#99D096
accent
#DE4A52
background
#FDF8FD
surface
#FBEFFA
border
#D4CAD3
text
#150B15
muted
#837C83

Preview Lab

Preview with #C042C8

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

Preview Lab → · Contrast checker → · Palette generator →

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