#CD81EA#CD81EA

#CD81EA is a light, vivid purple. Relative luminance 0.346; OKLCH L 72.1% C 0.166 H 316.1°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#CD81EA
RGBrgb(205, 129, 234)
HSLhsl(283, 71%, 71%)
HSVhsv(283, 45%, 92%)
CMYKcmyk(12.4%, 44.9%, 0%, 8.2%)
CIE-LABlab(65.45, 46.74, -41.52)
CIE-LCHlch(65.45, 62.52, 318.39°)
OKLaboklab(72.14% 0.1196 -0.115)
OKLCHoklch(72.14% 0.166 316.1)
XYZxyz(47.8762, 34.6215, 81.9866)
Luminance0.3462 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81EA #9EEA81
analogous
#9881EA #CD81EA #EA81D2
triadic
#CD81EA #EACD81 #81EACD
tetradic
#CD81EA #EA9881 #9EEA81 #81D2EA
square
#CD81EA #EA9881 #9EEA81 #81D2EA
split-complementary
#CD81EA #D2EA81 #81EA98
monochromatic
#9F22CE #B84DE1 #CD81EA #E2B5F3 #F5E5FB

Accessibility & contrast

On white

2.65
#CD81EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.92
#CD81EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81EA
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81EA#FFFFFF#000000##000000
##CD81EA1.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9AEE
Deuteranopia (green-blind)
#83A1E7
Tritanopia (blue-blind)
#CC90AB
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd81ea;
/* rgb */ color: rgb(205, 129, 234);
/* oklch */ color: oklch(72.1% 0.166 316.1);
Tailwind
colors: {
  custom: {
    50: '#dea7f1',
    500: '#cd81ea',
    950: '#000000',
  },
}
SCSS
$custom: #cd81ea;
$custom-light: #dea7f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81ea",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 234
  },
  "hsl": {
    "h": 283.429,
    "s": 71.429,
    "l": 71.176
  },
  "oklch": {
    "l": 0.72135,
    "c": 0.16588,
    "h": 316.1
  },
  "luminance": 0.3462
}

Semantic roles & 50–950 ramp

primary
#CD81EA
secondary
#DDF1D6
accent
#D31247
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CD81EA

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

Preview Lab → · Contrast checker → · Palette generator →

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