#D28CEF#D28CEF

#D28CEF is a light, vivid purple. Relative luminance 0.387; OKLCH L 74.6% C 0.155 H 315.5°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#D28CEF
RGBrgb(210, 140, 239)
HSLhsl(282, 76%, 74%)
HSVhsv(282, 41%, 94%)
CMYKcmyk(12.1%, 41.4%, 0%, 6.3%)
CIE-LABlab(68.53, 43.37, -39.42)
CIE-LCHlch(68.53, 58.61, 317.73°)
OKLaboklab(74.63% 0.1108 -0.1089)
OKLCHoklch(74.63% 0.155 315.5)
XYZxyz(51.5340, 38.6911, 86.3980)
Luminance0.3869 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D28CEF #A9EF8C
analogous
#A18CEF #D28CEF #EF8CDB
triadic
#D28CEF #EFD28C #8CEFD2
tetradic
#D28CEF #EFA18C #A9EF8C #8CDBEF
square
#D28CEF #EFA18C #A9EF8C #8CDBEF
split-complementary
#D28CEF #DBEF8C #8CEFA1
monochromatic
#A821E0 #BD56E8 #D28CEF #E7C2F6 #F4E4FB

Accessibility & contrast

On white

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

On black

8.74
#D28CEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D28CEF
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D28CEF#FFFFFF#000000##000000
##D28CEF1.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA3F3
Deuteranopia (green-blind)
#8DA9EC
Tritanopia (blue-blind)
#D19AB2
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d28cef;
/* rgb */ color: rgb(210, 140, 239);
/* oklch */ color: oklch(74.6% 0.155 315.5);
Tailwind
colors: {
  custom: {
    50: '#e1aff4',
    500: '#d28cef',
    950: '#000000',
  },
}
SCSS
$custom: #d28cef;
$custom-light: #e1aff4;
$custom-dark: #000000;
JSON
{
  "hex": "#d28cef",
  "rgb": {
    "r": 210,
    "g": 140,
    "b": 239
  },
  "hsl": {
    "h": 282.424,
    "s": 75.573,
    "l": 74.314
  },
  "oklch": {
    "l": 0.7463,
    "c": 0.15536,
    "h": 315.5
  },
  "luminance": 0.3869
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D28CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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