#CD81EF#CD81EF

#CD81EF is a light, vivid purple. Relative luminance 0.349; OKLCH L 72.4% C 0.171 H 314.6°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#CD81EF
RGBrgb(205, 129, 239)
HSLhsl(281, 77%, 72%)
HSVhsv(281, 46%, 94%)
CMYKcmyk(14.2%, 46%, 0%, 6.3%)
CIE-LABlab(65.68, 47.76, -43.92)
CIE-LCHlch(65.68, 64.89, 317.40°)
OKLaboklab(72.38% 0.1204 -0.1219)
OKLCHoklch(72.38% 0.171 314.6)
XYZxyz(48.6046, 34.9129, 85.8231)
Luminance0.3491 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD81EF #A3EF81
analogous
#9681EF #CD81EF #EF81DA
triadic
#CD81EF #EFCD81 #81EFCD
tetradic
#CD81EF #EF9681 #A3EF81 #81DAEF
square
#CD81EF #EF9681 #A3EF81 #81DAEF
split-complementary
#CD81EF #DAEF81 #81EF96
monochromatic
#9F1CDA #B74BE8 #CD81EF #E3B7F6 #F4E4FC

Accessibility & contrast

On white

2.63
#CD81EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#CD81EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD81EF
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD81EF#FFFFFF#000000##000000
##CD81EF1.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9BF3
Deuteranopia (green-blind)
#80A2EC
Tritanopia (blue-blind)
#CB91AD
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cd81ef;
/* rgb */ color: rgb(205, 129, 239);
/* oklch */ color: oklch(72.4% 0.171 314.6);
Tailwind
colors: {
  custom: {
    50: '#dea7f4',
    500: '#cd81ef',
    950: '#000000',
  },
}
SCSS
$custom: #cd81ef;
$custom-light: #dea7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd81ef",
  "rgb": {
    "r": 205,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 281.455,
    "s": 77.465,
    "l": 72.157
  },
  "oklch": {
    "l": 0.72379,
    "c": 0.17129,
    "h": 314.6
  },
  "luminance": 0.34912
}

Semantic roles & 50–950 ramp

primary
#CD81EF
secondary
#E0F3D8
accent
#DA0C4B
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CD81EF

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

Preview Lab → · Contrast checker → · Palette generator →

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