#D042CC#D042CC

#D042CC is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.1% C 0.232 H 329.1°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#D042CC
RGBrgb(208, 66, 204)
HSLhsl(302, 60%, 54%)
HSVhsv(302, 68%, 82%)
CMYKcmyk(0%, 68.3%, 1.9%, 18.4%)
CIE-LABlab(53.67, 70.78, -43.16)
CIE-LCHlch(53.67, 82.90, 328.63°)
OKLaboklab(63.1% 0.1991 -0.1192)
OKLCHoklch(63.1% 0.232 329.1)
XYZxyz(38.8594, 21.6688, 59.2508)
Luminance0.2167 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042CC #42D046
analogous
#8D42D0 #D042CC #D04285
triadic
#D042CC #CCD042 #42CCD0
tetradic
#D042CC #D08D42 #42D046 #4285D0
square
#D042CC #D08D42 #42D046 #4285D0
split-complementary
#D042CC #85D042 #42D08D
monochromatic
#791E77 #AA2AA7 #D042CC #DC73D9 #E8A4E6

Accessibility & contrast

On white

3.94
#D042CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#D042CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042CC
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042CC#FFFFFF#000000##000000
##D042CC1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3074D0
Deuteranopia (green-blind)
#6987C8
Tritanopia (blue-blind)
#D75582
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d042cc;
/* rgb */ color: rgb(208, 66, 204);
/* oklch */ color: oklch(63.1% 0.232 329.1);
Tailwind
colors: {
  custom: {
    50: '#e282dc',
    500: '#d042cc',
    950: '#000000',
  },
}
SCSS
$custom: #d042cc;
$custom-light: #e282dc;
$custom-dark: #000000;
JSON
{
  "hex": "#d042cc",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 301.69,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.63102,
    "c": 0.23202,
    "h": 329.1
  },
  "luminance": 0.21666
}

Semantic roles & 50–950 ramp

primary
#D042CC
secondary
#99D59A
accent
#E34944
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D042CC

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

Preview Lab → · Contrast checker → · Palette generator →

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