#CD81E9#CD81E9

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

Color values

HEX#CD81E9
RGBrgb(205, 129, 233)
HSLhsl(284, 70%, 71%)
HSVhsv(284, 45%, 91%)
CMYKcmyk(12%, 44.6%, 0%, 8.6%)
CIE-LABlab(65.41, 46.54, -41.03)
CIE-LCHlch(65.41, 62.04, 318.60°)
OKLaboklab(72.09% 0.1194 -0.1136)
OKLCHoklch(72.09% 0.165 316.4)
XYZxyz(47.7329, 34.5642, 81.2321)
Luminance0.3456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81E9 #9DE981
analogous
#9981E9 #CD81E9 #E981D1
triadic
#CD81E9 #E9CD81 #81E9CD
tetradic
#CD81E9 #E99981 #9DE981 #81D1E9
square
#CD81E9 #E99981 #9DE981 #81D1E9
split-complementary
#CD81E9 #D1E981 #81E999
monochromatic
#9F24CC #B84DE0 #CD81E9 #E2B5F2 #F5E5FA

Accessibility & contrast

On white

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

On black

7.91
#CD81E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81E9
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81E9#FFFFFF#000000##000000
##CD81E91.002.657.917.91
#FFFFFF2.651.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9AED
Deuteranopia (green-blind)
#83A1E6
Tritanopia (blue-blind)
#CC8FAA
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd81e9;
/* rgb */ color: rgb(205, 129, 233);
/* oklch */ color: oklch(72.1% 0.165 316.4);
Tailwind
colors: {
  custom: {
    50: '#dea7f0',
    500: '#cd81e9',
    950: '#000000',
  },
}
SCSS
$custom: #cd81e9;
$custom-light: #dea7f0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81e9",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 233
  },
  "hsl": {
    "h": 283.846,
    "s": 70.27,
    "l": 70.98
  },
  "oklch": {
    "l": 0.72087,
    "c": 0.16481,
    "h": 316.4
  },
  "luminance": 0.34563
}

Semantic roles & 50–950 ramp

primary
#CD81E9
secondary
#DDF1D5
accent
#D21347
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CD81E9

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

Preview Lab → · Contrast checker → · Palette generator →

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