#CCA7FD#CCA7FD

#CCA7FD is a light, vivid violet. Relative luminance 0.476; OKLCH L 79.2% C 0.125 H 303.4°. Best body text is #000000 at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#CCA7FD
RGBrgb(204, 167, 253)
HSLhsl(266, 96%, 82%)
HSVhsv(266, 34%, 99%)
CMYKcmyk(19.4%, 34%, 0%, 0.8%)
CIE-LABlab(74.55, 29.97, -37.71)
CIE-LCHlch(74.55, 48.17, 308.48°)
OKLaboklab(79.25% 0.0688 -0.1042)
OKLCHoklch(79.25% 0.125 303.4)
XYZxyz(56.4465, 47.5668, 99.1170)
Luminance0.4757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA7FD #D8FDA7
analogous
#A7ADFD #CCA7FD #F7A7FD
triadic
#CCA7FD #FDCCA7 #A7FDCC
tetradic
#CCA7FD #FDA7AD #D8FDA7 #A7FDF7
square
#CCA7FD #FDA7AD #D8FDA7 #A7FDF7
split-complementary
#CCA7FD #FDF7A7 #ADFDA7
monochromatic
#872FFA #A96BFC #CCA7FD #EEE1FE #EEE1FE

Accessibility & contrast

On white

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

On black

10.51
#CCA7FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA7FD
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA7FD#FFFFFF#000000##000000
##CCA7FD1.002.0010.5110.51
#FFFFFF2.001.0021.0021.00
#00000010.5121.001.001.00
##00000010.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#94B6FF
Deuteranopia (green-blind)
#9CB7FB
Tritanopia (blue-blind)
#C4B4C7
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #cca7fd;
/* rgb */ color: rgb(204, 167, 253);
/* oklch */ color: oklch(79.2% 0.125 303.4);
Tailwind
colors: {
  custom: {
    50: '#dcc1fe',
    500: '#cca7fd',
    950: '#000000',
  },
}
SCSS
$custom: #cca7fd;
$custom-light: #dcc1fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cca7fd",
  "rgb": {
    "r": 204,
    "g": 167,
    "b": 253
  },
  "hsl": {
    "h": 265.814,
    "s": 95.556,
    "l": 82.353
  },
  "oklch": {
    "l": 0.79245,
    "c": 0.1249,
    "h": 303.4
  },
  "luminance": 0.47567
}

Semantic roles & 50–950 ramp

primary
#CCA7FD
secondary
#E8F7D4
accent
#E60083
background
#FDFBFF
surface
#FBF7FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #CCA7FD

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

Preview Lab → · Contrast checker → · Palette generator →

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