#CD96EC#CD96EC

#CD96EC is a light, vivid violet. Relative luminance 0.408; OKLCH L 75.6% C 0.133 H 312.8°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#CD96EC
RGBrgb(205, 150, 236)
HSLhsl(278, 69%, 76%)
HSVhsv(278, 36%, 93%)
CMYKcmyk(13.1%, 36.4%, 0%, 7.5%)
CIE-LABlab(70.07, 35.90, -35.42)
CIE-LCHlch(70.07, 50.43, 315.39°)
OKLaboklab(75.63% 0.0902 -0.0976)
OKLCHoklch(75.63% 0.133 312.8)
XYZxyz(51.2210, 40.8489, 84.5269)
Luminance0.4085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD96EC #B5EC96
analogous
#A296EC #CD96EC #EC96E0
triadic
#CD96EC #ECCD96 #96ECCD
tetradic
#CD96EC #ECA296 #B5EC96 #96E0EC
square
#CD96EC #ECA296 #B5EC96 #96E0EC
split-complementary
#CD96EC #E0EC96 #96ECA2
monochromatic
#9C2ED9 #B462E3 #CD96EC #E6CAF5 #F3E5FA

Accessibility & contrast

On white

2.29
#CD96EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.17
#CD96EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD96EC
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD96EC#FFFFFF#000000##000000
##CD96EC1.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A8EF
Deuteranopia (green-blind)
#94ADE9
Tritanopia (blue-blind)
#CAA2B6
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cd96ec;
/* rgb */ color: rgb(205, 150, 236);
/* oklch */ color: oklch(75.6% 0.133 312.8);
Tailwind
colors: {
  custom: {
    50: '#ddb5f2',
    500: '#cd96ec',
    950: '#000000',
  },
}
SCSS
$custom: #cd96ec;
$custom-light: #ddb5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd96ec",
  "rgb": {
    "r": 205,
    "g": 150,
    "b": 236
  },
  "hsl": {
    "h": 278.372,
    "s": 69.355,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75635,
    "c": 0.13286,
    "h": 312.8
  },
  "luminance": 0.40848
}

Semantic roles & 50–950 ramp

primary
#CD96EC
secondary
#E2F2D9
accent
#D11458
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD96EC

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

Preview Lab → · Contrast checker → · Palette generator →

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