#CD81EB#CD81EB

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

Color values

HEX#CD81EB
RGBrgb(205, 129, 235)
HSLhsl(283, 73%, 71%)
HSVhsv(283, 45%, 92%)
CMYKcmyk(12.8%, 45.1%, 0%, 7.8%)
CIE-LABlab(65.50, 46.94, -42.00)
CIE-LCHlch(65.50, 62.99, 318.18°)
OKLaboklab(72.18% 0.1198 -0.1163)
OKLCHoklch(72.18% 0.167 315.8)
XYZxyz(48.0202, 34.6791, 82.7453)
Luminance0.3468 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81EB #9FEB81
analogous
#9881EB #CD81EB #EB81D4
triadic
#CD81EB #EBCD81 #81EBCD
tetradic
#CD81EB #EB9881 #9FEB81 #81D4EB
square
#CD81EB #EB9881 #9FEB81 #81D4EB
split-complementary
#CD81EB #D4EB81 #81EB98
monochromatic
#9F21D1 #B84CE3 #CD81EB #E2B6F3 #F5E5FB

Accessibility & contrast

On white

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

On black

7.94
#CD81EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81EB
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81EB#FFFFFF#000000##000000
##CD81EB1.002.657.947.94
#FFFFFF2.651.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9AEF
Deuteranopia (green-blind)
#82A1E8
Tritanopia (blue-blind)
#CC90AB
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd81eb;
/* rgb */ color: rgb(205, 129, 235);
/* oklch */ color: oklch(72.2% 0.167 315.8);
Tailwind
colors: {
  custom: {
    50: '#dea7f2',
    500: '#cd81eb',
    950: '#000000',
  },
}
SCSS
$custom: #cd81eb;
$custom-light: #dea7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81eb",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 235
  },
  "hsl": {
    "h": 283.019,
    "s": 72.603,
    "l": 71.373
  },
  "oklch": {
    "l": 0.72183,
    "c": 0.16697,
    "h": 315.8
  },
  "luminance": 0.34678
}

Semantic roles & 50–950 ramp

primary
#CD81EB
secondary
#DEF2D6
accent
#D51148
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CD81EB

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

Preview Lab → · Contrast checker → · Palette generator →

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