#CD96F8#CD96F8

#CD96F8 is a light, vivid violet. Relative luminance 0.416; OKLCH L 76.2% C 0.147 H 309.1°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#CD96F8
RGBrgb(205, 150, 248)
HSLhsl(274, 88%, 78%)
HSVhsv(274, 40%, 97%)
CMYKcmyk(17.3%, 39.5%, 0%, 2.7%)
CIE-LABlab(70.57, 38.44, -41.19)
CIE-LCHlch(70.57, 56.34, 313.03°)
OKLaboklab(76.18% 0.0927 -0.1141)
OKLCHoklch(76.18% 0.147 309.1)
XYZxyz(53.0233, 41.5698, 94.0192)
Luminance0.4157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD96F8 #C1F896
analogous
#9C96F8 #CD96F8 #F896F2
triadic
#CD96F8 #F8CD96 #96F8CD
tetradic
#CD96F8 #F89C96 #C1F896 #96F2F8
square
#CD96F8 #F89C96 #C1F896 #96F2F8
split-complementary
#CD96F8 #F2F896 #96F89C
monochromatic
#9623F0 #B25DF4 #CD96F8 #E8CFFC #F1E2FD

Accessibility & contrast

On white

2.25
#CD96F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.31
#CD96F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD96F8
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD96F8#FFFFFF#000000##000000
##CD96F81.002.259.319.31
#FFFFFF2.251.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#82AAFC
Deuteranopia (green-blind)
#8FAEF5
Tritanopia (blue-blind)
#C8A5BB
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd96f8;
/* rgb */ color: rgb(205, 150, 248);
/* oklch */ color: oklch(76.2% 0.147 309.1);
Tailwind
colors: {
  custom: {
    50: '#deb5fb',
    500: '#cd96f8',
    950: '#000000',
  },
}
SCSS
$custom: #cd96f8;
$custom-light: #deb5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd96f8",
  "rgb": {
    "r": 205,
    "g": 150,
    "b": 248
  },
  "hsl": {
    "h": 273.673,
    "s": 87.5,
    "l": 78.039
  },
  "oklch": {
    "l": 0.76181,
    "c": 0.14701,
    "h": 309.1
  },
  "luminance": 0.41569
}

Semantic roles & 50–950 ramp

primary
#CD96F8
secondary
#E4F5D6
accent
#E40165
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD96F8

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

Preview Lab → · Contrast checker → · Palette generator →

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