#CCA2EF#CCA2EF

#CCA2EF is a light, moderate violet. Relative luminance 0.449; OKLCH L 77.8% C 0.116 H 308.8°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#CCA2EF
RGBrgb(204, 162, 239)
HSLhsl(273, 71%, 79%)
HSVhsv(273, 32%, 94%)
CMYKcmyk(14.6%, 32.2%, 0%, 6.3%)
CIE-LABlab(72.83, 29.67, -32.78)
CIE-LCHlch(72.83, 44.22, 312.15°)
OKLaboklab(77.75% 0.0725 -0.0901)
OKLCHoklch(77.75% 0.116 308.8)
XYZxyz(53.3993, 44.9105, 87.5001)
Luminance0.4491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA2EF #C5EFA2
analogous
#A5A2EF #CCA2EF #EFA2EB
triadic
#CCA2EF #EFCCA2 #A2EFCC
tetradic
#CCA2EF #EFA5A2 #C5EFA2 #A2EBEF
square
#CCA2EF #EFA5A2 #C5EFA2 #A2EBEF
split-complementary
#CCA2EF #EBEFA2 #A2EFA5
monochromatic
#933ADD #AF6EE6 #CCA2EF #E9D6F8 #F1E5FB

Accessibility & contrast

On white

2.10
#CCA2EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.98
#CCA2EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA2EF
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA2EF#FFFFFF#000000##000000
##CCA2EF1.002.109.989.98
#FFFFFF2.101.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#94B1F2
Deuteranopia (green-blind)
#9DB3ED
Tritanopia (blue-blind)
#C8ADBE
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #cca2ef;
/* rgb */ color: rgb(204, 162, 239);
/* oklch */ color: oklch(77.8% 0.116 308.8);
Tailwind
colors: {
  custom: {
    50: '#dcbef4',
    500: '#cca2ef',
    950: '#000000',
  },
}
SCSS
$custom: #cca2ef;
$custom-light: #dcbef4;
$custom-dark: #000000;
JSON
{
  "hex": "#cca2ef",
  "rgb": {
    "r": 204,
    "g": 162,
    "b": 239
  },
  "hsl": {
    "h": 272.727,
    "s": 70.642,
    "l": 78.627
  },
  "oklch": {
    "l": 0.77752,
    "c": 0.11569,
    "h": 308.8
  },
  "luminance": 0.4491
}

Semantic roles & 50–950 ramp

primary
#CCA2EF
secondary
#E4F2D9
accent
#D3136A
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151217
muted
#838185

Preview Lab

Preview with #CCA2EF

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

Preview Lab → · Contrast checker → · Palette generator →

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