#CD8DF2#CD8DF2

#CD8DF2 is a light, vivid violet. Relative luminance 0.384; OKLCH L 74.4% C 0.155 H 312.3°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#CD8DF2
RGBrgb(205, 141, 242)
HSLhsl(278, 80%, 75%)
HSVhsv(278, 42%, 95%)
CMYKcmyk(15.3%, 41.7%, 0%, 5.1%)
CIE-LABlab(68.34, 42.02, -41.39)
CIE-LCHlch(68.34, 58.98, 315.43°)
OKLaboklab(74.42% 0.1042 -0.1147)
OKLCHoklch(74.42% 0.155 312.3)
XYZxyz(50.7260, 38.4407, 88.7348)
Luminance0.3844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8DF2 #B2F28D
analogous
#9A8DF2 #CD8DF2 #F28DE4
triadic
#CD8DF2 #F2CD8D #8DF2CD
tetradic
#CD8DF2 #F29A8D #B2F28D #8DE4F2
square
#CD8DF2 #F29A8D #B2F28D #8DE4F2
split-complementary
#CD8DF2 #E4F28D #8DF29A
monochromatic
#9D1FE5 #B556EC #CD8DF2 #E5C4F8 #F3E4FC

Accessibility & contrast

On white

2.42
#CD8DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#CD8DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8DF2
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8DF2#FFFFFF#000000##000000
##CD8DF21.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A3F6
Deuteranopia (green-blind)
#89A8EF
Tritanopia (blue-blind)
#C99CB4
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cd8df2;
/* rgb */ color: rgb(205, 141, 242);
/* oklch */ color: oklch(74.4% 0.155 312.3);
Tailwind
colors: {
  custom: {
    50: '#deaff6',
    500: '#cd8df2',
    950: '#000000',
  },
}
SCSS
$custom: #cd8df2;
$custom-light: #deaff6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8df2",
  "rgb": {
    "r": 205,
    "g": 141,
    "b": 242
  },
  "hsl": {
    "h": 278.02,
    "s": 79.528,
    "l": 75.098
  },
  "oklch": {
    "l": 0.74417,
    "c": 0.15491,
    "h": 312.3
  },
  "luminance": 0.3844
}

Semantic roles & 50–950 ramp

primary
#CD8DF2
secondary
#E2F4D7
accent
#DC0A57
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151017
muted
#837F85

Preview Lab

Preview with #CD8DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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