#CD96FB#CD96FB

#CD96FB is a light, vivid violet. Relative luminance 0.418; OKLCH L 76.3% C 0.151 H 308.3°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#CD96FB
RGBrgb(205, 150, 251)
HSLhsl(273, 93%, 79%)
HSVhsv(273, 40%, 98%)
CMYKcmyk(18.3%, 40.2%, 0%, 1.6%)
CIE-LABlab(70.70, 39.09, -42.62)
CIE-LCHlch(70.70, 57.83, 312.53°)
OKLaboklab(76.32% 0.0933 -0.1182)
OKLCHoklch(76.32% 0.151 308.3)
XYZxyz(53.4925, 41.7574, 96.4901)
Luminance0.4176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD96FB #C4FB96
analogous
#9A96FB #CD96FB #FB96F7
triadic
#CD96FB #FBCD96 #96FBCD
tetradic
#CD96FB #FB9A96 #C4FB96 #96F7FB
square
#CD96FB #FB9A96 #C4FB96 #96F7FB
split-complementary
#CD96FB #F7FB96 #96FB9A
monochromatic
#9520F7 #B15BF9 #CD96FB #E9D1FD #F1E2FE

Accessibility & contrast

On white

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

On black

9.35
#CD96FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD96FB
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD96FB#FFFFFF#000000##000000
##CD96FB1.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd96fb;
/* rgb */ color: rgb(205, 150, 251);
/* oklch */ color: oklch(76.3% 0.151 308.3);
Tailwind
colors: {
  custom: {
    50: '#deb5fd',
    500: '#cd96fb',
    950: '#000000',
  },
}
SCSS
$custom: #cd96fb;
$custom-light: #deb5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd96fb",
  "rgb": {
    "r": 205,
    "g": 150,
    "b": 251
  },
  "hsl": {
    "h": 272.673,
    "s": 92.661,
    "l": 78.627
  },
  "oklch": {
    "l": 0.76321,
    "c": 0.15059,
    "h": 308.3
  },
  "luminance": 0.41757
}

Semantic roles & 50–950 ramp

primary
#CD96FB
secondary
#E4F6D5
accent
#E60069
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD96FB

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

Preview Lab → · Contrast checker → · Palette generator →

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