#CD81E8#CD81E8

#CD81E8 is a light, vivid purple. Relative luminance 0.345; OKLCH L 72.0% C 0.164 H 316.8°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#CD81E8
RGBrgb(205, 129, 232)
HSLhsl(284, 69%, 71%)
HSVhsv(284, 44%, 91%)
CMYKcmyk(11.6%, 44.4%, 0%, 9%)
CIE-LABlab(65.36, 46.33, -40.55)
CIE-LCHlch(65.36, 61.57, 318.81°)
OKLaboklab(72.04% 0.1193 -0.1122)
OKLCHoklch(72.04% 0.164 316.8)
XYZxyz(47.5905, 34.5072, 80.4819)
Luminance0.3451 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81E8 #9CE881
analogous
#9981E8 #CD81E8 #E881CF
triadic
#CD81E8 #E8CD81 #81E8CD
tetradic
#CD81E8 #E89981 #9CE881 #81CFE8
square
#CD81E8 #E89981 #9CE881 #81CFE8
split-complementary
#CD81E8 #CFE881 #81E899
monochromatic
#9F25CA #B84DDF #CD81E8 #E2B5F1 #F5E5FA

Accessibility & contrast

On white

2.66
#CD81E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#CD81E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81E8
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81E8#FFFFFF#000000##000000
##CD81E81.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9AEC
Deuteranopia (green-blind)
#84A1E5
Tritanopia (blue-blind)
#CC8FAA
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd81e8;
/* rgb */ color: rgb(205, 129, 232);
/* oklch */ color: oklch(72.0% 0.164 316.8);
Tailwind
colors: {
  custom: {
    50: '#dea7ef',
    500: '#cd81e8',
    950: '#000000',
  },
}
SCSS
$custom: #cd81e8;
$custom-light: #dea7ef;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81e8",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 232
  },
  "hsl": {
    "h": 284.272,
    "s": 69.128,
    "l": 70.784
  },
  "oklch": {
    "l": 0.72039,
    "c": 0.16373,
    "h": 316.8
  },
  "luminance": 0.34506
}

Semantic roles & 50–950 ramp

primary
#CD81E8
secondary
#DCF0D5
accent
#D11446
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CD81E8

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

Preview Lab → · Contrast checker → · Palette generator →

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