#CCA7FF#CCA7FF

#CCA7FF is a light, vivid violet. Relative luminance 0.477; OKLCH L 79.3% C 0.127 H 302.9°. Best body text is #000000 at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#CCA7FF
RGBrgb(204, 167, 255)
HSLhsl(265, 100%, 83%)
HSVhsv(265, 35%, 100%)
CMYKcmyk(20%, 34.5%, 0%, 0%)
CIE-LABlab(74.63, 30.42, -38.66)
CIE-LCHlch(74.63, 49.19, 308.19°)
OKLaboklab(79.33% 0.0693 -0.107)
OKLCHoklch(79.33% 0.127 302.9)
XYZxyz(56.7668, 47.6949, 100.8038)
Luminance0.4769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA7FF #DAFFA7
analogous
#A7AEFF #CCA7FF #F8A7FF
triadic
#CCA7FF #FFCCA7 #A7FFCC
tetradic
#CCA7FF #FFA7AE #DAFFA7 #A7FFF8
square
#CCA7FF #FFA7AE #DAFFA7 #A7FFF8
split-complementary
#CCA7FF #FFF8A7 #AEFFA7
monochromatic
#852DFF #A96AFF #CCA7FF #EDE0FF #EDE0FF

Accessibility & contrast

On white

1.99
#CCA7FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.54
#CCA7FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA7FF
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA7FF#FFFFFF#000000##000000
##CCA7FF1.001.9910.5410.54
#FFFFFF1.991.0021.0021.00
#00000010.5421.001.001.00
##00000010.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#93B7FF
Deuteranopia (green-blind)
#9BB7FD
Tritanopia (blue-blind)
#C4B5C7
Achromatopsia (no color)
#B8B8B8

Design tokens & code

CSS
--color: #cca7ff;
/* rgb */ color: rgb(204, 167, 255);
/* oklch */ color: oklch(79.3% 0.127 302.9);
Tailwind
colors: {
  custom: {
    50: '#ddc1ff',
    500: '#cca7ff',
    950: '#000000',
  },
}
SCSS
$custom: #cca7ff;
$custom-light: #ddc1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cca7ff",
  "rgb": {
    "r": 204,
    "g": 167,
    "b": 255
  },
  "hsl": {
    "h": 265.227,
    "s": 100,
    "l": 82.745
  },
  "oklch": {
    "l": 0.79333,
    "c": 0.12744,
    "h": 302.9
  },
  "luminance": 0.47695
}

Semantic roles & 50–950 ramp

primary
#CCA7FF
secondary
#E8F7D4
accent
#E60085
background
#FDFBFF
surface
#FBF7FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #CCA7FF

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

Preview Lab → · Contrast checker → · Palette generator →

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