#CD96EF#CD96EF

#CD96EF is a light, vivid violet. Relative luminance 0.410; OKLCH L 75.8% C 0.136 H 311.8°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#CD96EF
RGBrgb(205, 150, 239)
HSLhsl(277, 74%, 76%)
HSVhsv(277, 37%, 94%)
CMYKcmyk(14.2%, 37.2%, 0%, 6.3%)
CIE-LABlab(70.19, 36.52, -36.87)
CIE-LCHlch(70.19, 51.90, 314.73°)
OKLaboklab(75.77% 0.0908 -0.1017)
OKLCHoklch(75.77% 0.136 311.8)
XYZxyz(51.6605, 41.0247, 86.8417)
Luminance0.4102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD96EF #B8EF96
analogous
#A196EF #CD96EF #EF96E5
triadic
#CD96EF #EFCD96 #96EFCD
tetradic
#CD96EF #EFA196 #B8EF96 #96E5EF
square
#CD96EF #EFA196 #B8EF96 #96E5EF
split-complementary
#CD96EF #E5EF96 #96EFA1
monochromatic
#9A2CDF #B461E7 #CD96EF #E6CBF7 #F2E4FB

Accessibility & contrast

On white

2.28
#CD96EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#CD96EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD96EF
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD96EF#FFFFFF#000000##000000
##CD96EF1.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#86A9F2
Deuteranopia (green-blind)
#93ADEC
Tritanopia (blue-blind)
#CAA2B7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd96ef;
/* rgb */ color: rgb(205, 150, 239);
/* oklch */ color: oklch(75.8% 0.136 311.8);
Tailwind
colors: {
  custom: {
    50: '#ddb5f4',
    500: '#cd96ef',
    950: '#000000',
  },
}
SCSS
$custom: #cd96ef;
$custom-light: #ddb5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd96ef",
  "rgb": {
    "r": 205,
    "g": 150,
    "b": 239
  },
  "hsl": {
    "h": 277.079,
    "s": 73.554,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75769,
    "c": 0.13637,
    "h": 311.8
  },
  "luminance": 0.41024
}

Semantic roles & 50–950 ramp

primary
#CD96EF
secondary
#E2F3D8
accent
#D6105B
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD96EF

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

Preview Lab → · Contrast checker → · Palette generator →

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