#CC8CE2#CC8CE2

#CC8CE2 is a light, vivid purple. Relative luminance 0.371; OKLCH L 73.4% C 0.138 H 317.2°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#CC8CE2
RGBrgb(204, 140, 226)
HSLhsl(285, 60%, 72%)
HSVhsv(285, 38%, 89%)
CMYKcmyk(9.7%, 38.1%, 0%, 11.4%)
CIE-LABlab(67.34, 38.96, -34.16)
CIE-LCHlch(67.34, 51.81, 318.75°)
OKLaboklab(73.41% 0.1013 -0.0939)
OKLCHoklch(73.41% 0.138 317.2)
XYZxyz(48.0054, 37.0858, 76.5662)
Luminance0.3709 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8CE2 #A2E28C
analogous
#A18CE2 #CC8CE2 #E28CCD
triadic
#CC8CE2 #E2CC8C #8CE2CC
tetradic
#CC8CE2 #E2A18C #A2E28C #8CCDE2
square
#CC8CE2 #E2A18C #A2E28C #8CCDE2
split-complementary
#CC8CE2 #CDE28C #8CE2A1
monochromatic
#9D31C3 #B65BD6 #CC8CE2 #E2BDEE #F4E7F9

Accessibility & contrast

On white

2.49
#CC8CE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.42
#CC8CE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8CE2
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8CE2#FFFFFF#000000##000000
##CC8CE21.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA0E5
Deuteranopia (green-blind)
#8FA6DF
Tritanopia (blue-blind)
#CC97AD
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cc8ce2;
/* rgb */ color: rgb(204, 140, 226);
/* oklch */ color: oklch(73.4% 0.138 317.2);
Tailwind
colors: {
  custom: {
    50: '#ddaeeb',
    500: '#cc8ce2',
    950: '#000000',
  },
}
SCSS
$custom: #cc8ce2;
$custom-light: #ddaeeb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8ce2",
  "rgb": {
    "r": 204,
    "g": 140,
    "b": 226
  },
  "hsl": {
    "h": 284.651,
    "s": 59.722,
    "l": 71.765
  },
  "oklch": {
    "l": 0.73415,
    "c": 0.13812,
    "h": 317.2
  },
  "luminance": 0.37085
}

Semantic roles & 50–950 ramp

primary
#CC8CE2
secondary
#E0F0DA
accent
#C71E49
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CC8CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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