#CD81ED#CD81ED

#CD81ED is a light, vivid purple. Relative luminance 0.348; OKLCH L 72.3% C 0.169 H 315.2°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#CD81ED
RGBrgb(205, 129, 237)
HSLhsl(282, 75%, 72%)
HSVhsv(282, 46%, 93%)
CMYKcmyk(13.5%, 45.6%, 0%, 7.1%)
CIE-LABlab(65.59, 47.35, -42.96)
CIE-LCHlch(65.59, 63.94, 317.79°)
OKLaboklab(72.28% 0.1201 -0.1191)
OKLCHoklch(72.28% 0.169 315.2)
XYZxyz(48.3108, 34.7954, 84.2756)
Luminance0.3479 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81ED #A1ED81
analogous
#9781ED #CD81ED #ED81D7
triadic
#CD81ED #EDCD81 #81EDCD
tetradic
#CD81ED #ED9781 #A1ED81 #81D7ED
square
#CD81ED #ED9781 #A1ED81 #81D7ED
split-complementary
#CD81ED #D7ED81 #81ED97
monochromatic
#9F1ED5 #B84BE5 #CD81ED #E2B7F5 #F4E4FB

Accessibility & contrast

On white

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

On black

7.96
#CD81ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81ED
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81ED#FFFFFF#000000##000000
##CD81ED1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9BF1
Deuteranopia (green-blind)
#81A1EA
Tritanopia (blue-blind)
#CB91AC
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd81ed;
/* rgb */ color: rgb(205, 129, 237);
/* oklch */ color: oklch(72.3% 0.169 315.2);
Tailwind
colors: {
  custom: {
    50: '#dea7f3',
    500: '#cd81ed',
    950: '#000000',
  },
}
SCSS
$custom: #cd81ed;
$custom-light: #dea7f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81ed",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 237
  },
  "hsl": {
    "h": 282.222,
    "s": 75,
    "l": 71.765
  },
  "oklch": {
    "l": 0.72281,
    "c": 0.16912,
    "h": 315.2
  },
  "luminance": 0.34794
}

Semantic roles & 50–950 ramp

primary
#CD81ED
secondary
#DFF3D7
accent
#D70E4A
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CD81ED

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

Preview Lab → · Contrast checker → · Palette generator →

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