#CD96F2#CD96F2

#CD96F2 is a light, vivid violet. Relative luminance 0.412; OKLCH L 75.9% C 0.140 H 310.8°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#CD96F2
RGBrgb(205, 150, 242)
HSLhsl(276, 78%, 77%)
HSVhsv(276, 38%, 95%)
CMYKcmyk(15.3%, 38%, 0%, 5.1%)
CIE-LABlab(70.32, 37.16, -38.31)
CIE-LCHlch(70.32, 53.37, 314.13°)
OKLaboklab(75.9% 0.0915 -0.1058)
OKLCHoklch(75.9% 0.14 310.8)
XYZxyz(52.1074, 41.2034, 89.1952)
Luminance0.4120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD96F2 #BBF296
analogous
#9F96F2 #CD96F2 #F296E9
triadic
#CD96F2 #F2CD96 #96F2CD
tetradic
#CD96F2 #F29F96 #BBF296 #96E9F2
square
#CD96F2 #F29F96 #BBF296 #96E9F2
split-complementary
#CD96F2 #E9F296 #96F29F
monochromatic
#9929E5 #B360EB #CD96F2 #E7CCF9 #F2E4FC

Accessibility & contrast

On white

2.27
#CD96F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.24
#CD96F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD96F2
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD96F2#FFFFFF#000000##000000
##CD96F21.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#84A9F5
Deuteranopia (green-blind)
#91ADEF
Tritanopia (blue-blind)
#C9A3B9
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd96f2;
/* rgb */ color: rgb(205, 150, 242);
/* oklch */ color: oklch(75.9% 0.140 310.8);
Tailwind
colors: {
  custom: {
    50: '#ddb5f6',
    500: '#cd96f2',
    950: '#000000',
  },
}
SCSS
$custom: #cd96f2;
$custom-light: #ddb5f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd96f2",
  "rgb": {
    "r": 205,
    "g": 150,
    "b": 242
  },
  "hsl": {
    "h": 275.87,
    "s": 77.966,
    "l": 76.863
  },
  "oklch": {
    "l": 0.75904,
    "c": 0.1399,
    "h": 310.8
  },
  "luminance": 0.41203
}

Semantic roles & 50–950 ramp

primary
#CD96F2
secondary
#E3F3D8
accent
#DA0B5F
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CD96F2

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

Preview Lab → · Contrast checker → · Palette generator →

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