#CD99F8#CD99F8

#CD99F8 is a light, vivid violet. Relative luminance 0.425; OKLCH L 76.7% C 0.142 H 308.5°. Best body text is #000000 at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#CD99F8
RGBrgb(205, 153, 248)
HSLhsl(273, 87%, 79%)
HSVhsv(273, 38%, 97%)
CMYKcmyk(17.3%, 38.3%, 0%, 2.7%)
CIE-LABlab(71.24, 36.81, -40.14)
CIE-LCHlch(71.24, 54.47, 312.52°)
OKLaboklab(76.69% 0.0885 -0.1111)
OKLCHoklch(76.69% 0.142 308.5)
XYZxyz(53.5082, 42.5395, 94.1808)
Luminance0.4254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD99F8 #C4F899
analogous
#9D99F8 #CD99F8 #F899F3
triadic
#CD99F8 #F8CD99 #99F8CD
tetradic
#CD99F8 #F89D99 #C4F899 #99F3F8
square
#CD99F8 #F89D99 #C4F899 #99F3F8
split-complementary
#CD99F8 #F3F899 #99F89D
monochromatic
#9526F0 #B160F4 #CD99F8 #E9D2FC #F1E2FD

Accessibility & contrast

On white

2.21
#CD99F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.51
#CD99F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD99F8
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD99F8#FFFFFF#000000##000000
##CD99F81.002.219.519.51
#FFFFFF2.211.0021.0021.00
#0000009.5121.001.001.00
##0000009.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#85ACFC
Deuteranopia (green-blind)
#91AFF5
Tritanopia (blue-blind)
#C7A7BD
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cd99f8;
/* rgb */ color: rgb(205, 153, 248);
/* oklch */ color: oklch(76.7% 0.142 308.5);
Tailwind
colors: {
  custom: {
    50: '#ddb7fb',
    500: '#cd99f8',
    950: '#000000',
  },
}
SCSS
$custom: #cd99f8;
$custom-light: #ddb7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd99f8",
  "rgb": {
    "r": 205,
    "g": 153,
    "b": 248
  },
  "hsl": {
    "h": 272.842,
    "s": 87.156,
    "l": 78.627
  },
  "oklch": {
    "l": 0.76685,
    "c": 0.14205,
    "h": 308.5
  },
  "luminance": 0.42539
}

Semantic roles & 50–950 ramp

primary
#CD99F8
secondary
#E4F5D6
accent
#E40268
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD99F8

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

Preview Lab → · Contrast checker → · Palette generator →

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