#CCA7EE#CCA7EE

#CCA7EE is a light, moderate violet. Relative luminance 0.466; OKLCH L 78.6% C 0.106 H 307.9°. Best body text is #000000 at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#CCA7EE
RGBrgb(204, 167, 238)
HSLhsl(271, 68%, 79%)
HSVhsv(271, 30%, 93%)
CMYKcmyk(14.3%, 29.8%, 0%, 6.7%)
CIE-LABlab(73.96, 26.72, -30.49)
CIE-LCHlch(73.96, 40.55, 311.23°)
OKLaboklab(78.6% 0.0651 -0.0836)
OKLCHoklch(78.6% 0.106 307.9)
XYZxyz(54.1503, 46.6483, 87.0237)
Luminance0.4665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA7EE #C9EEA7
analogous
#A9A7EE #CCA7EE #EEA7EC
triadic
#CCA7EE #EECCA7 #A7EECC
tetradic
#CCA7EE #EEA9A7 #C9EEA7 #A7ECEE
square
#CCA7EE #EEA9A7 #C9EEA7 #A7ECEE
split-complementary
#CCA7EE #ECEEA7 #A7EEA9
monochromatic
#9140DA #AE74E4 #CCA7EE #EADAF8 #F0E5FA

Accessibility & contrast

On white

2.03
#CCA7EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.33
#CCA7EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA7EE
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA7EE#FFFFFF#000000##000000
##CCA7EE1.002.0310.3310.33
#FFFFFF2.031.0021.0021.00
#00000010.3321.001.001.00
##00000010.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9AB4F1
Deuteranopia (green-blind)
#A2B6EC
Tritanopia (blue-blind)
#C8B1C0
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #cca7ee;
/* rgb */ color: rgb(204, 167, 238);
/* oklch */ color: oklch(78.6% 0.106 307.9);
Tailwind
colors: {
  custom: {
    50: '#dcc1f3',
    500: '#cca7ee',
    950: '#000000',
  },
}
SCSS
$custom: #cca7ee;
$custom-light: #dcc1f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cca7ee",
  "rgb": {
    "r": 204,
    "g": 167,
    "b": 238
  },
  "hsl": {
    "h": 271.268,
    "s": 67.619,
    "l": 79.412
  },
  "oklch": {
    "l": 0.78603,
    "c": 0.106,
    "h": 307.9
  },
  "luminance": 0.46648
}

Semantic roles & 50–950 ramp

primary
#CCA7EE
secondary
#E5F2D9
accent
#D0166F
background
#FDFBFE
surface
#FBF7FD
border
#D4D0D5
text
#151217
muted
#838185

Preview Lab

Preview with #CCA7EE

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

Preview Lab → · Contrast checker → · Palette generator →

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