#D542D8#D542D8

#D542D8 is a light, highly saturated purple. Relative luminance 0.230; OKLCH L 64.5% C 0.244 H 327.1°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#D542D8
RGBrgb(213, 66, 216)
HSLhsl(299, 66%, 55%)
HSVhsv(299, 69%, 85%)
CMYKcmyk(1.4%, 69.4%, 0%, 15.3%)
CIE-LABlab(55.08, 73.82, -47.73)
CIE-LCHlch(55.08, 87.91, 327.11°)
OKLaboklab(64.46% 0.2046 -0.1323)
OKLCHoklch(64.46% 0.244 327.1)
XYZxyz(41.7828, 23.0033, 67.1918)
Luminance0.2300 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D542D8 #45D842
analogous
#8A42D8 #D542D8 #D84290
triadic
#D542D8 #D8D542 #42D8D5
tetradic
#D542D8 #D88A42 #45D842 #4290D8
square
#D542D8 #D88A42 #45D842 #4290D8
split-complementary
#D542D8 #90D842 #42D88A
monochromatic
#821B84 #B426B7 #D542D8 #E075E2 #ECA7ED

Accessibility & contrast

On white

3.75
#D542D8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#D542D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D542D8
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D542D8#FFFFFF#000000##000000
##D542D81.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2478DC
Deuteranopia (green-blind)
#678AD4
Tritanopia (blue-blind)
#DB5989
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #d542d8;
/* rgb */ color: rgb(213, 66, 216);
/* oklch */ color: oklch(64.5% 0.244 327.1);
Tailwind
colors: {
  custom: {
    50: '#e683e4',
    500: '#d542d8',
    950: '#000000',
  },
}
SCSS
$custom: #d542d8;
$custom-light: #e683e4;
$custom-dark: #000000;
JSON
{
  "hex": "#d542d8",
  "rgb": {
    "r": 213,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 298.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.64464,
    "c": 0.24362,
    "h": 327.1
  },
  "luminance": 0.23
}

Semantic roles & 50–950 ramp

primary
#D542D8
secondary
#9DDA9C
accent
#E93F42
background
#FEF8FE
surface
#FDF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #D542D8

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

Preview Lab → · Contrast checker → · Palette generator →

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