#CCA8ED#CCA8ED

#CCA8ED is a light, moderate violet. Relative luminance 0.470; OKLCH L 78.7% C 0.103 H 308.0°. Best body text is #000000 at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#CCA8ED
RGBrgb(204, 168, 237)
HSLhsl(271, 66%, 79%)
HSVhsv(271, 29%, 93%)
CMYKcmyk(13.9%, 29.1%, 0%, 7.1%)
CIE-LABlab(74.16, 25.96, -29.65)
CIE-LCHlch(74.16, 39.41, 311.21°)
OKLaboklab(78.74% 0.0634 -0.0813)
OKLCHoklch(78.74% 0.103 308)
XYZxyz(54.1877, 46.9575, 86.3134)
Luminance0.4696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA8ED #C9EDA8
analogous
#AAA8ED #CCA8ED #EDA8EC
triadic
#CCA8ED #EDCCA8 #A8EDCC
tetradic
#CCA8ED #EDAAA8 #C9EDA8 #A8ECED
square
#CCA8ED #EDAAA8 #C9EDA8 #A8ECED
split-complementary
#CCA8ED #ECEDA8 #A8EDAA
monochromatic
#9143D8 #AE75E3 #CCA8ED #EADBF7 #F0E6FA

Accessibility & contrast

On white

2.02
#CCA8ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.39
#CCA8ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA8ED
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA8ED#FFFFFF#000000##000000
##CCA8ED1.002.0210.3910.39
#FFFFFF2.021.0021.0021.00
#00000010.3921.001.001.00
##00000010.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9CB5F0
Deuteranopia (green-blind)
#A3B7EB
Tritanopia (blue-blind)
#C8B1C1
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #cca8ed;
/* rgb */ color: rgb(204, 168, 237);
/* oklch */ color: oklch(78.7% 0.103 308.0);
Tailwind
colors: {
  custom: {
    50: '#dcc2f3',
    500: '#cca8ed',
    950: '#000000',
  },
}
SCSS
$custom: #cca8ed;
$custom-light: #dcc2f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cca8ed",
  "rgb": {
    "r": 204,
    "g": 168,
    "b": 237
  },
  "hsl": {
    "h": 271.304,
    "s": 65.714,
    "l": 79.412
  },
  "oklch": {
    "l": 0.78743,
    "c": 0.10306,
    "h": 308
  },
  "luminance": 0.46957
}

Semantic roles & 50–950 ramp

primary
#CCA8ED
secondary
#E5F1DA
accent
#CE186F
background
#FDFBFE
surface
#FBF7FD
border
#D4D0D5
text
#151217
muted
#838185

Preview Lab

Preview with #CCA8ED

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

Preview Lab → · Contrast checker → · Palette generator →

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