#CCA7EA#CCA7EA

#CCA7EA is a light, moderate violet. Relative luminance 0.464; OKLCH L 78.4% C 0.101 H 309.3°. Best body text is #000000 at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#CCA7EA
RGBrgb(204, 167, 234)
HSLhsl(273, 61%, 79%)
HSVhsv(273, 29%, 92%)
CMYKcmyk(12.8%, 28.6%, 0%, 8.2%)
CIE-LABlab(73.81, 25.88, -28.55)
CIE-LCHlch(73.81, 38.53, 312.19°)
OKLaboklab(78.44% 0.064 -0.0781)
OKLCHoklch(78.44% 0.101 309.3)
XYZxyz(53.5692, 46.4158, 83.9630)
Luminance0.4642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA7EA #C5EAA7
analogous
#AAA7EA #CCA7EA #EAA7E6
triadic
#CCA7EA #EACCA7 #A7EACC
tetradic
#CCA7EA #EAAAA7 #C5EAA7 #A7E6EA
square
#CCA7EA #EAAAA7 #C5EAA7 #A7E6EA
split-complementary
#CCA7EA #E6EAA7 #A7EAAA
monochromatic
#9344D2 #AF76DE #CCA7EA #E9D8F6 #F1E6F9

Accessibility & contrast

On white

2.04
#CCA7EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.28
#CCA7EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA7EA
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA7EA#FFFFFF#000000##000000
##CCA7EA1.002.0410.2810.28
#FFFFFF2.041.0021.0021.00
#00000010.2821.001.001.00
##00000010.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9CB4ED
Deuteranopia (green-blind)
#A3B6E8
Tritanopia (blue-blind)
#C9B0BF
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cca7ea;
/* rgb */ color: rgb(204, 167, 234);
/* oklch */ color: oklch(78.4% 0.101 309.3);
Tailwind
colors: {
  custom: {
    50: '#dcc1f1',
    500: '#cca7ea',
    950: '#000000',
  },
}
SCSS
$custom: #cca7ea;
$custom-light: #dcc1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cca7ea",
  "rgb": {
    "r": 204,
    "g": 167,
    "b": 234
  },
  "hsl": {
    "h": 273.134,
    "s": 61.468,
    "l": 78.627
  },
  "oklch": {
    "l": 0.78439,
    "c": 0.10102,
    "h": 309.3
  },
  "luminance": 0.46415
}

Semantic roles & 50–950 ramp

primary
#CCA7EA
secondary
#E4F0DB
accent
#C91C6A
background
#FDFBFE
surface
#FBF7FD
border
#D4D0D5
text
#151216
muted
#838184

Preview Lab

Preview with #CCA7EA

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

Preview Lab → · Contrast checker → · Palette generator →

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