#CCA8EA#CCA8EA

#CCA8EA is a light, moderate violet. Relative luminance 0.468; OKLCH L 78.6% C 0.099 H 309.0°. Best body text is #000000 at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#CCA8EA
RGBrgb(204, 168, 234)
HSLhsl(273, 61%, 79%)
HSVhsv(273, 28%, 92%)
CMYKcmyk(12.8%, 28.2%, 0%, 8.2%)
CIE-LABlab(74.05, 25.33, -28.19)
CIE-LCHlch(74.05, 37.90, 311.95°)
OKLaboklab(78.62% 0.0626 -0.0771)
OKLCHoklch(78.62% 0.099 309)
XYZxyz(53.7531, 46.7836, 84.0243)
Luminance0.4678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA8EA #C6EAA8
analogous
#ABA8EA #CCA8EA #EAA8E7
triadic
#CCA8EA #EACCA8 #A8EACC
tetradic
#CCA8EA #EAABA8 #C6EAA8 #A8E7EA
square
#CCA8EA #EAABA8 #C6EAA8 #A8E7EA
split-complementary
#CCA8EA #E7EAA8 #A8EAAB
monochromatic
#9245D2 #AF77DE #CCA8EA #E9D9F6 #F1E6F9

Accessibility & contrast

On white

2.03
#CCA8EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.36
#CCA8EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA8EA
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA8EA#FFFFFF#000000##000000
##CCA8EA1.002.0310.3610.36
#FFFFFF2.031.0021.0021.00
#00000010.3621.001.001.00
##00000010.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9DB4ED
Deuteranopia (green-blind)
#A4B7E8
Tritanopia (blue-blind)
#C9B1BF
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #cca8ea;
/* rgb */ color: rgb(204, 168, 234);
/* oklch */ color: oklch(78.6% 0.099 309.0);
Tailwind
colors: {
  custom: {
    50: '#dcc2f1',
    500: '#cca8ea',
    950: '#000000',
  },
}
SCSS
$custom: #cca8ea;
$custom-light: #dcc2f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cca8ea",
  "rgb": {
    "r": 204,
    "g": 168,
    "b": 234
  },
  "hsl": {
    "h": 272.727,
    "s": 61.111,
    "l": 78.824
  },
  "oklch": {
    "l": 0.78621,
    "c": 0.09932,
    "h": 309
  },
  "luminance": 0.46783
}

Semantic roles & 50–950 ramp

primary
#CCA8EA
secondary
#E5F0DB
accent
#C91D6B
background
#FDFBFE
surface
#FBF7FD
border
#D4D0D5
text
#151216
muted
#838184

Preview Lab

Preview with #CCA8EA

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

Preview Lab → · Contrast checker → · Palette generator →

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