#CCA7EB#CCA7EB

#CCA7EB is a light, moderate violet. Relative luminance 0.465; OKLCH L 78.5% C 0.102 H 309.0°. Best body text is #000000 at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#CCA7EB
RGBrgb(204, 167, 235)
HSLhsl(273, 63%, 79%)
HSVhsv(273, 29%, 92%)
CMYKcmyk(13.2%, 28.9%, 0%, 7.8%)
CIE-LABlab(73.85, 26.09, -29.04)
CIE-LCHlch(73.85, 39.04, 311.94°)
OKLaboklab(78.48% 0.0643 -0.0795)
OKLCHoklch(78.48% 0.102 309)
XYZxyz(53.7132, 46.4734, 84.7218)
Luminance0.4647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA7EB #C6EBA7
analogous
#AAA7EB #CCA7EB #EBA7E8
triadic
#CCA7EB #EBCCA7 #A7EBCC
tetradic
#CCA7EB #EBAAA7 #C6EBA7 #A7E8EB
square
#CCA7EB #EBAAA7 #C6EBA7 #A7E8EB
split-complementary
#CCA7EB #E8EBA7 #A7EBAA
monochromatic
#9243D4 #AF75E0 #CCA7EB #E9D9F6 #F1E6F9

Accessibility & contrast

On white

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

On black

10.29
#CCA7EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA7EB
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA7EB#FFFFFF#000000##000000
##CCA7EB1.002.0410.2910.29
#FFFFFF2.041.0021.0021.00
#00000010.2921.001.001.00
##00000010.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9BB4EE
Deuteranopia (green-blind)
#A3B6E9
Tritanopia (blue-blind)
#C8B0BF
Achromatopsia (no color)
#B5B5B5

Design tokens & code

CSS
--color: #cca7eb;
/* rgb */ color: rgb(204, 167, 235);
/* oklch */ color: oklch(78.5% 0.102 309.0);
Tailwind
colors: {
  custom: {
    50: '#dcc1f1',
    500: '#cca7eb',
    950: '#000000',
  },
}
SCSS
$custom: #cca7eb;
$custom-light: #dcc1f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cca7eb",
  "rgb": {
    "r": 204,
    "g": 167,
    "b": 235
  },
  "hsl": {
    "h": 272.647,
    "s": 62.963,
    "l": 78.824
  },
  "oklch": {
    "l": 0.7848,
    "c": 0.10226,
    "h": 309
  },
  "luminance": 0.46473
}

Semantic roles & 50–950 ramp

primary
#CCA7EB
secondary
#E5F1DA
accent
#CB1B6B
background
#FDFBFE
surface
#FBF7FD
border
#D4D0D5
text
#151216
muted
#838184

Preview Lab

Preview with #CCA7EB

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

Preview Lab → · Contrast checker → · Palette generator →

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