#CD81DC#CD81DC

#CD81DC is a light, vivid purple. Relative luminance 0.338; OKLCH L 71.5% C 0.151 H 320.8°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#CD81DC
RGBrgb(205, 129, 220)
HSLhsl(290, 57%, 68%)
HSVhsv(290, 41%, 86%)
CMYKcmyk(6.8%, 41.4%, 0%, 13.7%)
CIE-LABlab(64.84, 43.95, -34.71)
CIE-LCHlch(64.84, 56.00, 321.70°)
OKLaboklab(71.48% 0.1171 -0.0954)
OKLCHoklch(71.48% 0.151 320.8)
XYZxyz(45.9438, 33.8486, 71.8095)
Luminance0.3385 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81DC #90DC81
analogous
#9F81DC #CD81DC #DC81BD
triadic
#CD81DC #DCCD81 #81DCCD
tetradic
#CD81DC #DC9F81 #90DC81 #81BDDC
square
#CD81DC #DC9F81 #90DC81 #81BDDC
split-complementary
#CD81DC #BDDC81 #81DC9F
monochromatic
#9C31B1 #BA51CF #CD81DC #E0B1E9 #F3E1F7

Accessibility & contrast

On white

2.70
#CD81DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.77
#CD81DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81DC
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81DC#FFFFFF#000000##000000
##CD81DC1.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7598DF
Deuteranopia (green-blind)
#89A0D9
Tritanopia (blue-blind)
#CF8CA4
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd81dc;
/* rgb */ color: rgb(205, 129, 220);
/* oklch */ color: oklch(71.5% 0.151 320.8);
Tailwind
colors: {
  custom: {
    50: '#dea7e7',
    500: '#cd81dc',
    950: '#000000',
  },
}
SCSS
$custom: #cd81dc;
$custom-light: #dea7e7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81dc",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 220
  },
  "hsl": {
    "h": 290.11,
    "s": 56.522,
    "l": 68.431
  },
  "oklch": {
    "l": 0.71478,
    "c": 0.15104,
    "h": 320.8
  },
  "luminance": 0.33847
}

Semantic roles & 50–950 ramp

primary
#CD81DC
secondary
#D3EACF
accent
#C4213C
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CD81DC

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

Preview Lab → · Contrast checker → · Palette generator →

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