#D042CB#D042CB

#D042CB is a light, highly saturated purple. Relative luminance 0.216; OKLCH L 63.0% C 0.231 H 329.4°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#D042CB
RGBrgb(208, 66, 203)
HSLhsl(302, 60%, 54%)
HSVhsv(302, 68%, 82%)
CMYKcmyk(0%, 68.3%, 2.4%, 18.4%)
CIE-LABlab(53.62, 70.62, -42.66)
CIE-LCHlch(53.62, 82.51, 328.86°)
OKLaboklab(63.05% 0.199 -0.1177)
OKLCHoklch(63.05% 0.231 329.4)
XYZxyz(38.7398, 21.6210, 58.6212)
Luminance0.2162 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042CB #42D047
analogous
#8E42D0 #D042CB #D04284
triadic
#D042CB #CBD042 #42CBD0
tetradic
#D042CB #D08E42 #42D047 #4284D0
square
#D042CB #D08E42 #42D047 #4284D0
split-complementary
#D042CB #84D042 #42D08E
monochromatic
#791E76 #AA2AA6 #D042CB #DC73D8 #E8A4E6

Accessibility & contrast

On white

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

On black

5.32
#D042CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042CB
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042CB#FFFFFF#000000##000000
##D042CB1.003.945.325.32
#FFFFFF3.941.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3174CF
Deuteranopia (green-blind)
#6987C7
Tritanopia (blue-blind)
#D75482
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d042cb;
/* rgb */ color: rgb(208, 66, 203);
/* oklch */ color: oklch(63.0% 0.231 329.4);
Tailwind
colors: {
  custom: {
    50: '#e282db',
    500: '#d042cb',
    950: '#000000',
  },
}
SCSS
$custom: #d042cb;
$custom-light: #e282db;
$custom-dark: #000000;
JSON
{
  "hex": "#d042cb",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 302.113,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.63049,
    "c": 0.23125,
    "h": 329.4
  },
  "luminance": 0.21618
}

Semantic roles & 50–950 ramp

primary
#D042CB
secondary
#99D59B
accent
#E34A44
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D042CB

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

Preview Lab → · Contrast checker → · Palette generator →

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