#CD81E7#CD81E7

#CD81E7 is a light, vivid purple. Relative luminance 0.344; OKLCH L 72.0% C 0.163 H 317.1°. Best body text is #000000 at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#CD81E7
RGBrgb(205, 129, 231)
HSLhsl(285, 68%, 71%)
HSVhsv(285, 44%, 91%)
CMYKcmyk(11.3%, 44.2%, 0%, 9.4%)
CIE-LABlab(65.32, 46.13, -40.07)
CIE-LCHlch(65.32, 61.10, 319.02°)
OKLaboklab(71.99% 0.1191 -0.1108)
OKLCHoklch(71.99% 0.163 317.1)
XYZxyz(47.4488, 34.4506, 79.7360)
Luminance0.3445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81E7 #9BE781
analogous
#9A81E7 #CD81E7 #E781CE
triadic
#CD81E7 #E7CD81 #81E7CD
tetradic
#CD81E7 #E79A81 #9BE781 #81CEE7
square
#CD81E7 #E79A81 #9BE781 #81CEE7
split-complementary
#CD81E7 #CEE781 #81E79A
monochromatic
#9E26C8 #B94EDD #CD81E7 #E1B4F1 #F5E5FA

Accessibility & contrast

On white

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

On black

7.89
#CD81E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81E7
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81E7#FFFFFF#000000##000000
##CD81E71.002.667.897.89
#FFFFFF2.661.0021.0021.00
#0000007.8921.001.001.00
##0000007.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F9AEB
Deuteranopia (green-blind)
#84A1E4
Tritanopia (blue-blind)
#CC8FA9
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd81e7;
/* rgb */ color: rgb(205, 129, 231);
/* oklch */ color: oklch(72.0% 0.163 317.1);
Tailwind
colors: {
  custom: {
    50: '#dea7ef',
    500: '#cd81e7',
    950: '#000000',
  },
}
SCSS
$custom: #cd81e7;
$custom-light: #dea7ef;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81e7",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 231
  },
  "hsl": {
    "h": 284.706,
    "s": 68,
    "l": 70.588
  },
  "oklch": {
    "l": 0.71991,
    "c": 0.16266,
    "h": 317.1
  },
  "luminance": 0.34449
}

Semantic roles & 50–950 ramp

primary
#CD81E7
secondary
#DBF0D4
accent
#D01645
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CD81E7

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

Preview Lab → · Contrast checker → · Palette generator →

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