#D28DEC#D28DEC

#D28DEC is a light, vivid purple. Relative luminance 0.388; OKLCH L 74.7% C 0.150 H 316.4°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#D28DEC
RGBrgb(210, 141, 236)
HSLhsl(284, 71%, 74%)
HSVhsv(284, 40%, 93%)
CMYKcmyk(11%, 40.3%, 0%, 7.5%)
CIE-LABlab(68.61, 42.23, -37.64)
CIE-LCHlch(68.61, 56.57, 318.29°)
OKLaboklab(74.65% 0.1088 -0.1038)
OKLCHoklch(74.65% 0.15 316.4)
XYZxyz(51.2413, 38.8088, 84.1322)
Luminance0.3881 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D28DEC #A7EC8D
analogous
#A38DEC #D28DEC #EC8DD7
triadic
#D28DEC #ECD28D #8DECD2
tetradic
#D28DEC #ECA38D #A7EC8D #8DD7EC
square
#D28DEC #ECA38D #A7EC8D #8DD7EC
split-complementary
#D28DEC #D7EC8D #8DECA3
monochromatic
#A824DA #BD59E3 #D28DEC #E7C1F5 #F5E5FB

Accessibility & contrast

On white

2.40
#D28DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.76
#D28DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D28DEC
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D28DEC#FFFFFF#000000##000000
##D28DEC1.002.408.768.76
#FFFFFF2.401.0021.0021.00
#0000008.7621.001.001.00
##0000008.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA3EF
Deuteranopia (green-blind)
#8FAAE9
Tritanopia (blue-blind)
#D19AB1
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d28dec;
/* rgb */ color: rgb(210, 141, 236);
/* oklch */ color: oklch(74.7% 0.150 316.4);
Tailwind
colors: {
  custom: {
    50: '#e1aff2',
    500: '#d28dec',
    950: '#000000',
  },
}
SCSS
$custom: #d28dec;
$custom-light: #e1aff2;
$custom-dark: #000000;
JSON
{
  "hex": "#d28dec",
  "rgb": {
    "r": 210,
    "g": 141,
    "b": 236
  },
  "hsl": {
    "h": 283.579,
    "s": 71.429,
    "l": 73.922
  },
  "oklch": {
    "l": 0.74652,
    "c": 0.15039,
    "h": 316.4
  },
  "luminance": 0.38808
}

Semantic roles & 50–950 ramp

primary
#D28DEC
secondary
#E0F2D9
accent
#D31247
background
#FDFAFE
surface
#FBF5FD
border
#D4CFD5
text
#151017
muted
#837F85

Preview Lab

Preview with #D28DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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