#D042CF#D042CF

#D042CF is a light, highly saturated purple. Relative luminance 0.218; OKLCH L 63.3% C 0.234 H 328.2°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#D042CF
RGBrgb(208, 66, 207)
HSLhsl(300, 60%, 54%)
HSVhsv(300, 68%, 82%)
CMYKcmyk(0%, 68.3%, 0.5%, 18.4%)
CIE-LABlab(53.83, 71.26, -44.63)
CIE-LCHlch(53.83, 84.08, 327.94°)
OKLaboklab(63.26% 0.1992 -0.1234)
OKLCHoklch(63.26% 0.234 328.2)
XYZxyz(39.2227, 21.8141, 61.1641)
Luminance0.2181 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042CF #42D043
analogous
#8A42D0 #D042CF #D04288
triadic
#D042CF #CFD042 #42CFD0
tetradic
#D042CF #D08A42 #42D043 #4288D0
square
#D042CF #D08A42 #42D043 #4288D0
split-complementary
#D042CF #88D042 #42D08A
monochromatic
#791E79 #AA2AAA #D042CF #DC73DB #E8A4E8

Accessibility & contrast

On white

3.92
#D042CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#D042CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042CF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042CF#FFFFFF#000000##000000
##D042CF1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C75D3
Deuteranopia (green-blind)
#6787CB
Tritanopia (blue-blind)
#D75684
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #d042cf;
/* rgb */ color: rgb(208, 66, 207);
/* oklch */ color: oklch(63.3% 0.234 328.2);
Tailwind
colors: {
  custom: {
    50: '#e282de',
    500: '#d042cf',
    950: '#000000',
  },
}
SCSS
$custom: #d042cf;
$custom-light: #e282de;
$custom-dark: #000000;
JSON
{
  "hex": "#d042cf",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 300.423,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.63264,
    "c": 0.23431,
    "h": 328.2
  },
  "luminance": 0.21811
}

Semantic roles & 50–950 ramp

primary
#D042CF
secondary
#99D599
accent
#E34644
background
#FEF8FD
surface
#FDF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #D042CF

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

Preview Lab → · Contrast checker → · Palette generator →

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