#CCA7FC#CCA7FC

#CCA7FC is a light, vivid violet. Relative luminance 0.475; OKLCH L 79.2% C 0.124 H 303.7°. Best body text is #000000 at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#CCA7FC
RGBrgb(204, 167, 252)
HSLhsl(266, 93%, 82%)
HSVhsv(266, 34%, 99%)
CMYKcmyk(19%, 33.7%, 0%, 1.2%)
CIE-LABlab(74.51, 29.75, -37.23)
CIE-LCHlch(74.51, 47.66, 308.63°)
OKLaboklab(79.2% 0.0686 -0.1029)
OKLCHoklch(79.2% 0.124 303.7)
XYZxyz(56.2876, 47.5032, 98.2803)
Luminance0.4750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA7FC #D7FCA7
analogous
#A7ACFC #CCA7FC #F7A7FC
triadic
#CCA7FC #FCCCA7 #A7FCCC
tetradic
#CCA7FC #FCA7AC #D7FCA7 #A7FCF7
square
#CCA7FC #FCA7AC #D7FCA7 #A7FCF7
split-complementary
#CCA7FC #FCF7A7 #ACFCA7
monochromatic
#8731F8 #AA6CFA #CCA7FC #EEE1FE #EEE1FE

Accessibility & contrast

On white

2.00
#CCA7FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.50
#CCA7FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA7FC
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA7FC#FFFFFF#000000##000000
##CCA7FC1.002.0010.5010.50
#FFFFFF2.001.0021.0021.00
#00000010.5021.001.001.00
##00000010.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B6FF
Deuteranopia (green-blind)
#9CB7FA
Tritanopia (blue-blind)
#C4B4C6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #cca7fc;
/* rgb */ color: rgb(204, 167, 252);
/* oklch */ color: oklch(79.2% 0.124 303.7);
Tailwind
colors: {
  custom: {
    50: '#dcc1fd',
    500: '#cca7fc',
    950: '#000000',
  },
}
SCSS
$custom: #cca7fc;
$custom-light: #dcc1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cca7fc",
  "rgb": {
    "r": 204,
    "g": 167,
    "b": 252
  },
  "hsl": {
    "h": 266.118,
    "s": 93.407,
    "l": 82.157
  },
  "oklch": {
    "l": 0.79201,
    "c": 0.12363,
    "h": 303.7
  },
  "luminance": 0.47503
}

Semantic roles & 50–950 ramp

primary
#CCA7FC
secondary
#E8F6D5
accent
#E60082
background
#FDFBFF
surface
#FBF7FF
border
#D4D0D7
text
#151217
muted
#838185

Preview Lab

Preview with #CCA7FC

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

Preview Lab → · Contrast checker → · Palette generator →

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