#D581EC#D581EC

#D581EC is a light, vivid purple. Relative luminance 0.359; OKLCH L 73.1% C 0.172 H 318.8°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#D581EC
RGBrgb(213, 129, 236)
HSLhsl(287, 74%, 72%)
HSVhsv(287, 45%, 93%)
CMYKcmyk(9.7%, 45.3%, 0%, 7.5%)
CIE-LABlab(66.45, 49.40, -41.00)
CIE-LCHlch(66.45, 64.20, 320.31°)
OKLaboklab(73.11% 0.1292 -0.1133)
OKLCHoklch(73.11% 0.172 318.8)
XYZxyz(50.4291, 35.9045, 83.6144)
Luminance0.3590 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D581EC #98EC81
analogous
#A081EC #D581EC #EC81CE
triadic
#D581EC #ECD581 #81ECD5
tetradic
#D581EC #ECA081 #98EC81 #81CEEC
square
#D581EC #ECA081 #98EC81 #81CEEC
split-complementary
#D581EC #CEEC81 #81ECA0
monochromatic
#AC20D3 #C34CE4 #D581EC #E7B6F4 #F6E4FB

Accessibility & contrast

On white

2.57
#D581EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#D581EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D581EC
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D581EC#FFFFFF#000000##000000
##D581EC1.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#709CF0
Deuteranopia (green-blind)
#87A5E9
Tritanopia (blue-blind)
#D58FAB
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d581ec;
/* rgb */ color: rgb(213, 129, 236);
/* oklch */ color: oklch(73.1% 0.172 318.8);
Tailwind
colors: {
  custom: {
    50: '#e4a8f2',
    500: '#d581ec',
    950: '#000000',
  },
}
SCSS
$custom: #d581ec;
$custom-light: #e4a8f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d581ec",
  "rgb": {
    "r": 213,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 287.103,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.73105,
    "c": 0.17184,
    "h": 318.8
  },
  "luminance": 0.35903
}

Semantic roles & 50–950 ramp

primary
#D581EC
secondary
#DDF2D7
accent
#D6103A
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D581EC

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

Preview Lab → · Contrast checker → · Palette generator →

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