#D281EC#D281EC

#D281EC is a light, vivid purple. Relative luminance 0.355; OKLCH L 72.8% C 0.170 H 317.6°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#D281EC
RGBrgb(210, 129, 236)
HSLhsl(285, 74%, 72%)
HSVhsv(285, 45%, 93%)
CMYKcmyk(11%, 45.3%, 0%, 7.5%)
CIE-LABlab(66.11, 48.56, -41.56)
CIE-LCHlch(66.11, 63.91, 319.44°)
OKLaboklab(72.78% 0.1257 -0.115)
OKLCHoklch(72.78% 0.17 317.6)
XYZxyz(49.5668, 35.4598, 83.5740)
Luminance0.3546 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D281EC #9BEC81
analogous
#9D81EC #D281EC #EC81D0
triadic
#D281EC #ECD281 #81ECD2
tetradic
#D281EC #EC9D81 #9BEC81 #81D0EC
square
#D281EC #EC9D81 #9BEC81 #81D0EC
split-complementary
#D281EC #D0EC81 #81EC9D
monochromatic
#A720D3 #BF4CE4 #D281EC #E5B6F4 #F6E4FB

Accessibility & contrast

On white

2.60
#D281EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#D281EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D281EC
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D281EC#FFFFFF#000000##000000
##D281EC1.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9BF0
Deuteranopia (green-blind)
#85A3E9
Tritanopia (blue-blind)
#D290AB
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d281ec;
/* rgb */ color: rgb(210, 129, 236);
/* oklch */ color: oklch(72.8% 0.170 317.6);
Tailwind
colors: {
  custom: {
    50: '#e2a7f2',
    500: '#d281ec',
    950: '#000000',
  },
}
SCSS
$custom: #d281ec;
$custom-light: #e2a7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d281ec",
  "rgb": {
    "r": 210,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 285.421,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.72775,
    "c": 0.17036,
    "h": 317.6
  },
  "luminance": 0.35458
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D281EC

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

Preview Lab → · Contrast checker → · Palette generator →

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