#CD81EC#CD81EC

#CD81EC is a light, vivid purple. Relative luminance 0.347; OKLCH L 72.2% C 0.168 H 315.5°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#CD81EC
RGBrgb(205, 129, 236)
HSLhsl(283, 74%, 72%)
HSVhsv(283, 45%, 93%)
CMYKcmyk(13.1%, 45.3%, 0%, 7.5%)
CIE-LABlab(65.54, 47.15, -42.48)
CIE-LCHlch(65.54, 63.46, 317.98°)
OKLaboklab(72.23% 0.1199 -0.1177)
OKLCHoklch(72.23% 0.168 315.5)
XYZxyz(48.1651, 34.7371, 83.5083)
Luminance0.3474 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81EC #A0EC81
analogous
#9881EC #CD81EC #EC81D6
triadic
#CD81EC #ECCD81 #81ECCD
tetradic
#CD81EC #EC9881 #A0EC81 #81D6EC
square
#CD81EC #EC9881 #A0EC81 #81D6EC
split-complementary
#CD81EC #D6EC81 #81EC98
monochromatic
#9F20D3 #B84CE4 #CD81EC #E2B6F4 #F4E4FB

Accessibility & contrast

On white

2.64
#CD81EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#CD81EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81EC
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81EC#FFFFFF#000000##000000
##CD81EC1.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9BF0
Deuteranopia (green-blind)
#82A1E9
Tritanopia (blue-blind)
#CB90AB
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd81ec;
/* rgb */ color: rgb(205, 129, 236);
/* oklch */ color: oklch(72.2% 0.168 315.5);
Tailwind
colors: {
  custom: {
    50: '#dea7f2',
    500: '#cd81ec',
    950: '#000000',
  },
}
SCSS
$custom: #cd81ec;
$custom-light: #dea7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81ec",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 282.617,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.72232,
    "c": 0.16804,
    "h": 315.5
  },
  "luminance": 0.34736
}

Semantic roles & 50–950 ramp

primary
#CD81EC
secondary
#DFF2D7
accent
#D61049
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CD81EC

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

Preview Lab → · Contrast checker → · Palette generator →

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