#C042D1#C042D1

#C042D1 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.2% C 0.228 H 322.7°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#C042D1
RGBrgb(192, 66, 209)
HSLhsl(293, 61%, 54%)
HSVhsv(293, 68%, 82%)
CMYKcmyk(8.1%, 68.4%, 0%, 18%)
CIE-LABlab(51.51, 68.07, -49.61)
CIE-LCHlch(51.51, 84.23, 323.91°)
OKLaboklab(61.15% 0.1817 -0.1384)
OKLCHoklch(61.15% 0.228 322.7)
XYZxyz(35.1939, 19.7083, 62.2596)
Luminance0.1971 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C042D1 #53D142
analogous
#7942D1 #C042D1 #D1429B
triadic
#C042D1 #D1C042 #42D1C0
tetradic
#C042D1 #D17942 #53D142 #429BD1
square
#C042D1 #D17942 #53D142 #429BD1
split-complementary
#C042D1 #9BD142 #42D179
monochromatic
#701E7B #9C2AAC #C042D1 #D073DD #E1A4E9

Accessibility & contrast

On white

4.25
#C042D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#C042D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C042D1
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C042D1#FFFFFF#000000##000000
##C042D11.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1471D5
Deuteranopia (green-blind)
#5780CE
Tritanopia (blue-blind)
#C35B85
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #c042d1;
/* rgb */ color: rgb(192, 66, 209);
/* oklch */ color: oklch(61.2% 0.228 322.7);
Tailwind
colors: {
  custom: {
    50: '#d781e0',
    500: '#c042d1',
    950: '#000000',
  },
}
SCSS
$custom: #c042d1;
$custom-light: #d781e0;
$custom-dark: #000000;
JSON
{
  "hex": "#c042d1",
  "rgb": {
    "r": 192,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 292.867,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.61151,
    "c": 0.2284,
    "h": 322.7
  },
  "luminance": 0.19706
}

Semantic roles & 50–950 ramp

primary
#C042D1
secondary
#A0D699
accent
#E44457
background
#FDF8FD
surface
#FBEFFB
border
#D4CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #C042D1

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

Preview Lab → · Contrast checker → · Palette generator →

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