#CD81E2#CD81E2

#CD81E2 is a light, vivid purple. Relative luminance 0.342; OKLCH L 71.8% C 0.157 H 318.7°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#CD81E2
RGBrgb(205, 129, 226)
HSLhsl(287, 63%, 70%)
HSVhsv(287, 43%, 89%)
CMYKcmyk(9.3%, 42.9%, 0%, 11.4%)
CIE-LABlab(65.10, 45.13, -37.64)
CIE-LCHlch(65.10, 58.77, 320.17°)
OKLaboklab(71.75% 0.1182 -0.1038)
OKLCHoklch(71.75% 0.157 318.7)
XYZxyz(46.7527, 34.1721, 76.0699)
Luminance0.3417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81E2 #96E281
analogous
#9C81E2 #CD81E2 #E281C7
triadic
#CD81E2 #E2CD81 #81E2CD
tetradic
#CD81E2 #E29C81 #96E281 #81C7E2
square
#CD81E2 #E29C81 #96E281 #81C7E2
split-complementary
#CD81E2 #C7E281 #81E29C
monochromatic
#9E2CBD #B94FD7 #CD81E2 #E1B3ED #F4E4F9

Accessibility & contrast

On white

2.68
#CD81E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#CD81E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81E2
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81E2#FFFFFF#000000##000000
##CD81E21.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7299E5
Deuteranopia (green-blind)
#86A1DF
Tritanopia (blue-blind)
#CD8EA7
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd81e2;
/* rgb */ color: rgb(205, 129, 226);
/* oklch */ color: oklch(71.8% 0.157 318.7);
Tailwind
colors: {
  custom: {
    50: '#dea7eb',
    500: '#cd81e2',
    950: '#000000',
  },
}
SCSS
$custom: #cd81e2;
$custom-light: #dea7eb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81e2",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 226
  },
  "hsl": {
    "h": 287.01,
    "s": 62.581,
    "l": 69.608
  },
  "oklch": {
    "l": 0.71754,
    "c": 0.15733,
    "h": 318.7
  },
  "luminance": 0.34171
}

Semantic roles & 50–950 ramp

primary
#CD81E2
secondary
#D8EDD2
accent
#CA1B41
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CD81E2

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

Preview Lab → · Contrast checker → · Palette generator →

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