#CCA2EA#CCA2EA

#CCA2EA is a light, moderate violet. Relative luminance 0.446; OKLCH L 77.5% C 0.110 H 310.6°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#CCA2EA
RGBrgb(204, 162, 234)
HSLhsl(275, 63%, 78%)
HSVhsv(275, 31%, 92%)
CMYKcmyk(12.8%, 30.8%, 0%, 8.2%)
CIE-LABlab(72.64, 28.62, -30.36)
CIE-LCHlch(72.64, 41.72, 313.31°)
OKLaboklab(77.54% 0.0713 -0.0832)
OKLCHoklch(77.54% 0.11 310.6)
XYZxyz(52.6709, 44.6192, 83.6636)
Luminance0.4462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA2EA #C0EAA2
analogous
#A8A2EA #CCA2EA #EAA2E4
triadic
#CCA2EA #EACCA2 #A2EACC
tetradic
#CCA2EA #EAA8A2 #C0EAA2 #A2E4EA
square
#CCA2EA #EAA8A2 #C0EAA2 #A2E4EA
split-complementary
#CCA2EA #E4EAA2 #A2EAA8
monochromatic
#953ED3 #B170DF #CCA2EA #E7D4F5 #F1E6F9

Accessibility & contrast

On white

2.12
#CCA2EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.92
#CCA2EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA2EA
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA2EA#FFFFFF#000000##000000
##CCA2EA1.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#96B0ED
Deuteranopia (green-blind)
#9FB3E8
Tritanopia (blue-blind)
#C9ACBC
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cca2ea;
/* rgb */ color: rgb(204, 162, 234);
/* oklch */ color: oklch(77.5% 0.110 310.6);
Tailwind
colors: {
  custom: {
    50: '#dcbef1',
    500: '#cca2ea',
    950: '#000000',
  },
}
SCSS
$custom: #cca2ea;
$custom-light: #dcbef1;
$custom-dark: #000000;
JSON
{
  "hex": "#cca2ea",
  "rgb": {
    "r": 204,
    "g": 162,
    "b": 234
  },
  "hsl": {
    "h": 275,
    "s": 63.158,
    "l": 77.647
  },
  "oklch": {
    "l": 0.77541,
    "c": 0.10957,
    "h": 310.6
  },
  "luminance": 0.44619
}

Semantic roles & 50–950 ramp

primary
#CCA2EA
secondary
#E4F1DA
accent
#CB1B64
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151216
muted
#838184

Preview Lab

Preview with #CCA2EA

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

Preview Lab → · Contrast checker → · Palette generator →

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