#C042CD#C042CD

#C042CD is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 60.9% C 0.225 H 323.9°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#C042CD
RGBrgb(192, 66, 205)
HSLhsl(294, 58%, 53%)
HSVhsv(294, 68%, 80%)
CMYKcmyk(6.3%, 67.8%, 0%, 19.6%)
CIE-LABlab(51.28, 67.36, -47.68)
CIE-LCHlch(51.28, 82.53, 324.71°)
OKLaboklab(60.92% 0.1818 -0.1327)
OKLCHoklch(60.92% 0.225 323.9)
XYZxyz(34.7049, 19.5127, 59.6841)
Luminance0.1951 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042CD #4FCD42
analogous
#7A42CD #C042CD #CD4295
triadic
#C042CD #CDC042 #42CDC0
tetradic
#C042CD #CD7A42 #4FCD42 #4295CD
square
#C042CD #CD7A42 #4FCD42 #4295CD
split-complementary
#C042CD #95CD42 #42CD7A
monochromatic
#6D1F76 #9A2CA6 #C042CD #D072DA #E0A3E7

Accessibility & contrast

On white

4.28
#C042CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#C042CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042CD
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042CD#FFFFFF#000000##000000
##C042CD1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D71D1
Deuteranopia (green-blind)
#5A7FCA
Tritanopia (blue-blind)
#C35983
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #c042cd;
/* rgb */ color: rgb(192, 66, 205);
/* oklch */ color: oklch(60.9% 0.225 323.9);
Tailwind
colors: {
  custom: {
    50: '#d781dd',
    500: '#c042cd',
    950: '#000000',
  },
}
SCSS
$custom: #c042cd;
$custom-light: #d781dd;
$custom-dark: #000000;
JSON
{
  "hex": "#c042cd",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 294.388,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.60918,
    "c": 0.22507,
    "h": 323.9
  },
  "luminance": 0.19511
}

Semantic roles & 50–950 ramp

primary
#C042CD
secondary
#9DD397
accent
#E14655
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C042CD

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

Preview Lab → · Contrast checker → · Palette generator →

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