#CD8DEF#CD8DEF

#CD8DEF is a light, vivid violet. Relative luminance 0.383; OKLCH L 74.3% C 0.151 H 313.2°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#CD8DEF
RGBrgb(205, 141, 239)
HSLhsl(279, 75%, 75%)
HSVhsv(279, 41%, 94%)
CMYKcmyk(14.2%, 41%, 0%, 6.3%)
CIE-LABlab(68.21, 41.39, -39.95)
CIE-LCHlch(68.21, 57.53, 316.01°)
OKLaboklab(74.28% 0.1036 -0.1105)
OKLCHoklch(74.28% 0.151 313.2)
XYZxyz(50.2791, 38.2619, 86.3813)
Luminance0.3826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8DEF #AFEF8D
analogous
#9C8DEF #CD8DEF #EF8DE0
triadic
#CD8DEF #EFCD8D #8DEFCD
tetradic
#CD8DEF #EF9C8D #AFEF8D #8DE0EF
square
#CD8DEF #EF9C8D #AFEF8D #8DE0EF
split-complementary
#CD8DEF #E0EF8D #8DEF9C
monochromatic
#9E22E0 #B557E7 #CD8DEF #E5C3F7 #F3E4FB

Accessibility & contrast

On white

2.43
#CD8DEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.65
#CD8DEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8DEF
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8DEF#FFFFFF#000000##000000
##CD8DEF1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA3F3
Deuteranopia (green-blind)
#8BA8EC
Tritanopia (blue-blind)
#CA9BB3
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cd8def;
/* rgb */ color: rgb(205, 141, 239);
/* oklch */ color: oklch(74.3% 0.151 313.2);
Tailwind
colors: {
  custom: {
    50: '#deaff4',
    500: '#cd8def',
    950: '#000000',
  },
}
SCSS
$custom: #cd8def;
$custom-light: #deaff4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8def",
  "rgb": {
    "r": 205,
    "g": 141,
    "b": 239
  },
  "hsl": {
    "h": 279.184,
    "s": 75.385,
    "l": 74.51
  },
  "oklch": {
    "l": 0.74275,
    "c": 0.15149,
    "h": 313.2
  },
  "luminance": 0.38261
}

Semantic roles & 50–950 ramp

primary
#CD8DEF
secondary
#E1F3D8
accent
#D80E54
background
#FDFAFE
surface
#FBF5FD
border
#D4CFD5
text
#151017
muted
#837F85

Preview Lab

Preview with #CD8DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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