#CCA2EB#CCA2EB

#CCA2EB is a light, moderate violet. Relative luminance 0.447; OKLCH L 77.6% C 0.111 H 310.2°. Best body text is #000000 at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#CCA2EB
RGBrgb(204, 162, 235)
HSLhsl(275, 65%, 78%)
HSVhsv(275, 31%, 92%)
CMYKcmyk(13.2%, 31.1%, 0%, 7.8%)
CIE-LABlab(72.68, 28.83, -30.84)
CIE-LCHlch(72.68, 42.22, 313.07°)
OKLaboklab(77.58% 0.0715 -0.0846)
OKLCHoklch(77.58% 0.111 310.2)
XYZxyz(52.8149, 44.6768, 84.4223)
Luminance0.4468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA2EB #C1EBA2
analogous
#A7A2EB #CCA2EB #EBA2E5
triadic
#CCA2EB #EBCCA2 #A2EBCC
tetradic
#CCA2EB #EBA7A2 #C1EBA2 #A2E5EB
square
#CCA2EB #EBA7A2 #C1EBA2 #A2E5EB
split-complementary
#CCA2EB #E5EBA2 #A2EBA7
monochromatic
#953DD5 #B070E0 #CCA2EB #E8D4F6 #F1E6FA

Accessibility & contrast

On white

2.11
#CCA2EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.94
#CCA2EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA2EB
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA2EB#FFFFFF#000000##000000
##CCA2EB1.002.119.949.94
#FFFFFF2.111.0021.0021.00
#0000009.9421.001.001.00
##0000009.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B0EE
Deuteranopia (green-blind)
#9EB3E9
Tritanopia (blue-blind)
#C9ACBC
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cca2eb;
/* rgb */ color: rgb(204, 162, 235);
/* oklch */ color: oklch(77.6% 0.111 310.2);
Tailwind
colors: {
  custom: {
    50: '#dcbef1',
    500: '#cca2eb',
    950: '#000000',
  },
}
SCSS
$custom: #cca2eb;
$custom-light: #dcbef1;
$custom-dark: #000000;
JSON
{
  "hex": "#cca2eb",
  "rgb": {
    "r": 204,
    "g": 162,
    "b": 235
  },
  "hsl": {
    "h": 274.521,
    "s": 64.602,
    "l": 77.843
  },
  "oklch": {
    "l": 0.77583,
    "c": 0.11079,
    "h": 310.2
  },
  "luminance": 0.44676
}

Semantic roles & 50–950 ramp

primary
#CCA2EB
secondary
#E4F1DA
accent
#CC1965
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151216
muted
#838184

Preview Lab

Preview with #CCA2EB

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

Preview Lab → · Contrast checker → · Palette generator →

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