#CC8CD9#CC8CD9

#CC8CD9 is a light, vivid purple. Relative luminance 0.366; OKLCH L 73.0% C 0.128 H 320.7°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#CC8CD9
RGBrgb(204, 140, 217)
HSLhsl(290, 50%, 70%)
HSVhsv(290, 35%, 85%)
CMYKcmyk(6%, 35.5%, 0%, 14.9%)
CIE-LABlab(66.98, 37.16, -29.74)
CIE-LCHlch(66.98, 47.60, 321.34°)
OKLaboklab(73.02% 0.0992 -0.0813)
OKLCHoklch(73.02% 0.128 320.7)
XYZxyz(46.8028, 36.6047, 70.2322)
Luminance0.3660 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8CD9 #99D98C
analogous
#A58CD9 #CC8CD9 #D98CC0
triadic
#CC8CD9 #D9CC8C #8CD9CC
tetradic
#CC8CD9 #D9A58C #99D98C #8CC0D9
square
#CC8CD9 #D9A58C #99D98C #8CC0D9
split-complementary
#CC8CD9 #C0D98C #8CD9A5
monochromatic
#9C3AB0 #B85ECA #CC8CD9 #E0BAE8 #F5E8F7

Accessibility & contrast

On white

2.52
#CC8CD9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#CC8CD9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8CD9
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8CD9#FFFFFF#000000##000000
##CC8CD91.002.528.328.32
#FFFFFF2.521.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#839EDC
Deuteranopia (green-blind)
#92A5D7
Tritanopia (blue-blind)
#CE95A9
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cc8cd9;
/* rgb */ color: rgb(204, 140, 217);
/* oklch */ color: oklch(73.0% 0.128 320.7);
Tailwind
colors: {
  custom: {
    50: '#dcaee5',
    500: '#cc8cd9',
    950: '#000000',
  },
}
SCSS
$custom: #cc8cd9;
$custom-light: #dcaee5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8cd9",
  "rgb": {
    "r": 204,
    "g": 140,
    "b": 217
  },
  "hsl": {
    "h": 289.87,
    "s": 50.327,
    "l": 70
  },
  "oklch": {
    "l": 0.73022,
    "c": 0.12829,
    "h": 320.7
  },
  "luminance": 0.36603
}

Semantic roles & 50–950 ramp

primary
#CC8CD9
secondary
#D9EBD6
accent
#BE2841
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#151015
muted
#837F84

Preview Lab

Preview with #CC8CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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