#D042CD#D042CD

#D042CD is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 63.2% C 0.233 H 328.8°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#D042CD
RGBrgb(208, 66, 205)
HSLhsl(301, 60%, 54%)
HSVhsv(301, 68%, 82%)
CMYKcmyk(0%, 68.3%, 1.4%, 18.4%)
CIE-LABlab(53.73, 70.94, -43.65)
CIE-LCHlch(53.73, 83.29, 328.40°)
OKLaboklab(63.16% 0.1991 -0.1206)
OKLCHoklch(63.16% 0.233 328.8)
XYZxyz(38.9797, 21.7169, 59.8845)
Luminance0.2171 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D042CD #42D045
analogous
#8C42D0 #D042CD #D04286
triadic
#D042CD #CDD042 #42CDD0
tetradic
#D042CD #D08C42 #42D045 #4286D0
square
#D042CD #D08C42 #42D045 #4286D0
split-complementary
#D042CD #86D042 #42D08C
monochromatic
#791E77 #AA2AA8 #D042CD #DC73DA #E8A4E7

Accessibility & contrast

On white

3.93
#D042CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#D042CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D042CD
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D042CD#FFFFFF#000000##000000
##D042CD1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F74D1
Deuteranopia (green-blind)
#6887C9
Tritanopia (blue-blind)
#D75583
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #d042cd;
/* rgb */ color: rgb(208, 66, 205);
/* oklch */ color: oklch(63.2% 0.233 328.8);
Tailwind
colors: {
  custom: {
    50: '#e282dd',
    500: '#d042cd',
    950: '#000000',
  },
}
SCSS
$custom: #d042cd;
$custom-light: #e282dd;
$custom-dark: #000000;
JSON
{
  "hex": "#d042cd",
  "rgb": {
    "r": 208,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 301.268,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.63156,
    "c": 0.23278,
    "h": 328.8
  },
  "luminance": 0.21714
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D042CD

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

Preview Lab → · Contrast checker → · Palette generator →

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