#CD96FC#CD96FC

#CD96FC is a light, vivid violet. Relative luminance 0.418; OKLCH L 76.4% C 0.152 H 308.0°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#CD96FC
RGBrgb(205, 150, 252)
HSLhsl(272, 94%, 79%)
HSVhsv(272, 40%, 99%)
CMYKcmyk(18.7%, 40.5%, 0%, 1.2%)
CIE-LABlab(70.75, 39.31, -43.09)
CIE-LCHlch(70.75, 58.33, 312.37°)
OKLaboklab(76.37% 0.0934 -0.1196)
OKLCHoklch(76.37% 0.152 308)
XYZxyz(53.6505, 41.8207, 97.3224)
Luminance0.4182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD96FC #C5FC96
analogous
#9A96FC #CD96FC #FC96F8
triadic
#CD96FC #FCCD96 #96FCCD
tetradic
#CD96FC #FC9A96 #C5FC96 #96F8FC
square
#CD96FC #FC9A96 #C5FC96 #96F8FC
split-complementary
#CD96FC #F8FC96 #96FC9A
monochromatic
#941FF9 #B15BFA #CD96FC #E9D2FE #F1E1FE

Accessibility & contrast

On white

2.24
#CD96FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.36
#CD96FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD96FC
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD96FC#FFFFFF#000000##000000
##CD96FC1.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#80ABFF
Deuteranopia (green-blind)
#8DAEF9
Tritanopia (blue-blind)
#C7A6BD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd96fc;
/* rgb */ color: rgb(205, 150, 252);
/* oklch */ color: oklch(76.4% 0.152 308.0);
Tailwind
colors: {
  custom: {
    50: '#deb5fd',
    500: '#cd96fc',
    950: '#000000',
  },
}
SCSS
$custom: #cd96fc;
$custom-light: #deb5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd96fc",
  "rgb": {
    "r": 205,
    "g": 150,
    "b": 252
  },
  "hsl": {
    "h": 272.353,
    "s": 94.444,
    "l": 78.824
  },
  "oklch": {
    "l": 0.76369,
    "c": 0.15178,
    "h": 308
  },
  "luminance": 0.4182
}

Semantic roles & 50–950 ramp

primary
#CD96FC
secondary
#E4F6D5
accent
#E6006A
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CD96FC

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

Preview Lab → · Contrast checker → · Palette generator →

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