#CD99EC#CD99EC

#CD99EC is a light, vivid violet. Relative luminance 0.418; OKLCH L 76.1% C 0.128 H 312.2°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#CD99EC
RGBrgb(205, 153, 236)
HSLhsl(278, 69%, 76%)
HSVhsv(278, 35%, 93%)
CMYKcmyk(13.1%, 35.2%, 0%, 7.5%)
CIE-LABlab(70.75, 34.26, -34.37)
CIE-LCHlch(70.75, 48.53, 314.91°)
OKLaboklab(76.15% 0.0859 -0.0946)
OKLCHoklch(76.15% 0.128 312.2)
XYZxyz(51.7058, 41.8186, 84.6886)
Luminance0.4182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD99EC #B8EC99
analogous
#A499EC #CD99EC #EC99E2
triadic
#CD99EC #ECCD99 #99ECCD
tetradic
#CD99EC #ECA499 #B8EC99 #99E2EC
square
#CD99EC #ECA499 #B8EC99 #99E2EC
split-complementary
#CD99EC #E2EC99 #99ECA4
monochromatic
#9A32D9 #B465E2 #CD99EC #E6CDF6 #F2E5FA

Accessibility & contrast

On white

2.24
#CD99EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.36
#CD99EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD99EC
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD99EC#FFFFFF#000000##000000
##CD99EC1.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BAAEF
Deuteranopia (green-blind)
#96AEEA
Tritanopia (blue-blind)
#CAA4B8
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd99ec;
/* rgb */ color: rgb(205, 153, 236);
/* oklch */ color: oklch(76.1% 0.128 312.2);
Tailwind
colors: {
  custom: {
    50: '#ddb7f2',
    500: '#cd99ec',
    950: '#000000',
  },
}
SCSS
$custom: #cd99ec;
$custom-light: #ddb7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd99ec",
  "rgb": {
    "r": 205,
    "g": 153,
    "b": 236
  },
  "hsl": {
    "h": 277.59,
    "s": 68.595,
    "l": 76.275
  },
  "oklch": {
    "l": 0.76147,
    "c": 0.12775,
    "h": 312.2
  },
  "luminance": 0.41818
}

Semantic roles & 50–950 ramp

primary
#CD99EC
secondary
#E2F2D9
accent
#D1155B
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD99EC

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

Preview Lab → · Contrast checker → · Palette generator →

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