#CCA2FF#CCA2FF

#CCA2FF is a light, vivid violet. Relative luminance 0.459; OKLCH L 78.5% C 0.136 H 304.2°. Best body text is #000000 at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#CCA2FF
RGBrgb(204, 162, 255)
HSLhsl(267, 100%, 82%)
HSVhsv(267, 36%, 100%)
CMYKcmyk(20%, 36.5%, 0%, 0%)
CIE-LABlab(73.48, 33.15, -40.46)
CIE-LCHlch(73.48, 52.30, 309.33°)
OKLaboklab(78.46% 0.0762 -0.1121)
OKLCHoklch(78.46% 0.136 304.2)
XYZxyz(55.8685, 45.8982, 100.5043)
Luminance0.4590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA2FF #D5FFA2
analogous
#A2A7FF #CCA2FF #FBA2FF
triadic
#CCA2FF #FFCCA2 #A2FFCC
tetradic
#CCA2FF #FFA2A7 #D5FFA2 #A2FFFB
square
#CCA2FF #FFA2A7 #D5FFA2 #A2FFFB
split-complementary
#CCA2FF #FFFBA2 #A7FFA2
monochromatic
#8928FF #AA65FF #CCA2FF #EEDFFF #EEE0FF

Accessibility & contrast

On white

2.06
#CCA2FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.18
#CCA2FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA2FF
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA2FF#FFFFFF#000000##000000
##CCA2FF1.002.0610.1810.18
#FFFFFF2.061.0021.0021.00
#00000010.1821.001.001.00
##00000010.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DB3FF
Deuteranopia (green-blind)
#96B5FC
Tritanopia (blue-blind)
#C4B0C5
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #cca2ff;
/* rgb */ color: rgb(204, 162, 255);
/* oklch */ color: oklch(78.5% 0.136 304.2);
Tailwind
colors: {
  custom: {
    50: '#ddbeff',
    500: '#cca2ff',
    950: '#000000',
  },
}
SCSS
$custom: #cca2ff;
$custom-light: #ddbeff;
$custom-dark: #000000;
JSON
{
  "hex": "#cca2ff",
  "rgb": {
    "r": 204,
    "g": 162,
    "b": 255
  },
  "hsl": {
    "h": 267.097,
    "s": 100,
    "l": 81.765
  },
  "oklch": {
    "l": 0.78456,
    "c": 0.13556,
    "h": 304.2
  },
  "luminance": 0.45898
}

Semantic roles & 50–950 ramp

primary
#CCA2FF
secondary
#E7F7D4
accent
#E6007E
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #CCA2FF

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

Preview Lab → · Contrast checker → · Palette generator →

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