#CD99FC#CD99FC

#CD99FC is a light, vivid violet. Relative luminance 0.428; OKLCH L 76.9% C 0.147 H 307.4°. Best body text is #000000 at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#CD99FC
RGBrgb(205, 153, 252)
HSLhsl(272, 94%, 79%)
HSVhsv(272, 39%, 99%)
CMYKcmyk(18.7%, 39.3%, 0%, 1.2%)
CIE-LABlab(71.41, 37.68, -42.05)
CIE-LCHlch(71.41, 56.47, 311.87°)
OKLaboklab(76.87% 0.0893 -0.1166)
OKLCHoklch(76.87% 0.147 307.4)
XYZxyz(54.1354, 42.7904, 97.4841)
Luminance0.4279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD99FC #C8FC99
analogous
#9C99FC #CD99FC #FC99FA
triadic
#CD99FC #FCCD99 #99FCCD
tetradic
#CD99FC #FC9C99 #C8FC99 #99FAFC
square
#CD99FC #FC9C99 #C8FC99 #99FAFC
split-complementary
#CD99FC #FAFC99 #99FC9C
monochromatic
#9322F9 #B05EFA #CD99FC #EAD4FE #F0E1FE

Accessibility & contrast

On white

2.20
#CD99FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.56
#CD99FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD99FC
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD99FC#FFFFFF#000000##000000
##CD99FC1.002.209.569.56
#FFFFFF2.201.0021.0021.00
#0000009.5621.001.001.00
##0000009.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ADFF
Deuteranopia (green-blind)
#8FAFF9
Tritanopia (blue-blind)
#C7A8BF
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #cd99fc;
/* rgb */ color: rgb(205, 153, 252);
/* oklch */ color: oklch(76.9% 0.147 307.4);
Tailwind
colors: {
  custom: {
    50: '#deb8fd',
    500: '#cd99fc',
    950: '#000000',
  },
}
SCSS
$custom: #cd99fc;
$custom-light: #deb8fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cd99fc",
  "rgb": {
    "r": 205,
    "g": 153,
    "b": 252
  },
  "hsl": {
    "h": 271.515,
    "s": 94.286,
    "l": 79.412
  },
  "oklch": {
    "l": 0.76871,
    "c": 0.14687,
    "h": 307.4
  },
  "luminance": 0.4279
}

Semantic roles & 50–950 ramp

primary
#CD99FC
secondary
#E5F6D5
accent
#E6006D
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CD99FC

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

Preview Lab → · Contrast checker → · Palette generator →

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