#D28CEE#D28CEE

#D28CEE is a light, vivid purple. Relative luminance 0.386; OKLCH L 74.6% C 0.154 H 315.8°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#D28CEE
RGBrgb(210, 140, 238)
HSLhsl(283, 74%, 74%)
HSVhsv(283, 41%, 93%)
CMYKcmyk(11.8%, 41.2%, 0%, 6.7%)
CIE-LABlab(68.48, 43.17, -38.94)
CIE-LCHlch(68.48, 58.14, 317.95°)
OKLaboklab(74.58% 0.1106 -0.1075)
OKLCHoklch(74.58% 0.154 315.8)
XYZxyz(51.3867, 38.6322, 85.6221)
Luminance0.3863 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D28CEE #A8EE8C
analogous
#A18CEE #D28CEE #EE8CD9
triadic
#D28CEE #EED28C #8CEED2
tetradic
#D28CEE #EEA18C #A8EE8C #8CD9EE
square
#D28CEE #EEA18C #A8EE8C #8CD9EE
split-complementary
#D28CEE #D9EE8C #8CEEA1
monochromatic
#A821DE #BD57E6 #D28CEE #E7C1F6 #F5E4FB

Accessibility & contrast

On white

2.41
#D28CEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#D28CEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D28CEE
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D28CEE#FFFFFF#000000##000000
##D28CEE1.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA3F2
Deuteranopia (green-blind)
#8DA9EB
Tritanopia (blue-blind)
#D199B2
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d28cee;
/* rgb */ color: rgb(210, 140, 238);
/* oklch */ color: oklch(74.6% 0.154 315.8);
Tailwind
colors: {
  custom: {
    50: '#e1aff4',
    500: '#d28cee',
    950: '#000000',
  },
}
SCSS
$custom: #d28cee;
$custom-light: #e1aff4;
$custom-dark: #000000;
JSON
{
  "hex": "#d28cee",
  "rgb": {
    "r": 210,
    "g": 140,
    "b": 238
  },
  "hsl": {
    "h": 282.857,
    "s": 74.242,
    "l": 74.118
  },
  "oklch": {
    "l": 0.74584,
    "c": 0.15427,
    "h": 315.8
  },
  "luminance": 0.38631
}

Semantic roles & 50–950 ramp

primary
#D28CEE
secondary
#E0F3D8
accent
#D60F48
background
#FDFAFE
surface
#FBF5FD
border
#D4CFD5
text
#151017
muted
#837F85

Preview Lab

Preview with #D28CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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