#C042CF#C042CF

#C042CF is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 61.0% C 0.227 H 323.3°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#C042CF
RGBrgb(192, 66, 207)
HSLhsl(294, 59%, 54%)
HSVhsv(294, 68%, 81%)
CMYKcmyk(7.2%, 68.1%, 0%, 18.8%)
CIE-LABlab(51.39, 67.72, -48.65)
CIE-LCHlch(51.39, 83.38, 324.31°)
OKLaboklab(61.03% 0.1818 -0.1355)
OKLCHoklch(61.03% 0.227 323.3)
XYZxyz(34.9479, 19.6099, 60.9637)
Luminance0.1961 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042CF #51CF42
analogous
#7942CF #C042CF #CF4297
triadic
#C042CF #CFC042 #42CFC0
tetradic
#C042CF #CF7942 #51CF42 #4297CF
square
#C042CF #CF7942 #51CF42 #4297CF
split-complementary
#C042CF #97CF42 #42CF79
monochromatic
#6F1F78 #9B2BA9 #C042CF #D073DB #E1A4E8

Accessibility & contrast

On white

4.27
#C042CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#C042CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042CF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042CF#FFFFFF#000000##000000
##C042CF1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1971D3
Deuteranopia (green-blind)
#587FCC
Tritanopia (blue-blind)
#C35A84
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c042cf;
/* rgb */ color: rgb(192, 66, 207);
/* oklch */ color: oklch(61.0% 0.227 323.3);
Tailwind
colors: {
  custom: {
    50: '#d781de',
    500: '#c042cf',
    950: '#000000',
  },
}
SCSS
$custom: #c042cf;
$custom-light: #d781de;
$custom-dark: #000000;
JSON
{
  "hex": "#c042cf",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 293.617,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.61034,
    "c": 0.22673,
    "h": 323.3
  },
  "luminance": 0.19608
}

Semantic roles & 50–950 ramp

primary
#C042CF
secondary
#9FD598
accent
#E34556
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C042CF

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

Preview Lab → · Contrast checker → · Palette generator →

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