#CCA7FB#CCA7FB

#CCA7FB is a light, vivid violet. Relative luminance 0.474; OKLCH L 79.2% C 0.122 H 304.0°. Best body text is #000000 at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#CCA7FB
RGBrgb(204, 167, 251)
HSLhsl(266, 91%, 82%)
HSVhsv(266, 33%, 98%)
CMYKcmyk(18.7%, 33.5%, 0%, 1.6%)
CIE-LABlab(74.47, 29.53, -36.75)
CIE-LCHlch(74.47, 47.15, 308.78°)
OKLaboklab(79.16% 0.0683 -0.1015)
OKLCHoklch(79.16% 0.122 304)
XYZxyz(56.1296, 47.4400, 97.4479)
Luminance0.4744 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CCA7FB #D6FBA7
analogous
#A7ACFB #CCA7FB #F6A7FB
triadic
#CCA7FB #FBCCA7 #A7FBCC
tetradic
#CCA7FB #FBA7AC #D6FBA7 #A7FBF6
square
#CCA7FB #FBA7AC #D6FBA7 #A7FBF6
split-complementary
#CCA7FB #FBF6A7 #ACFBA7
monochromatic
#8832F6 #AA6CF8 #CCA7FB #EEE2FE #EEE2FE

Accessibility & contrast

On white

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

On black

10.49
#CCA7FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CCA7FB
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CCA7FB#FFFFFF#000000##000000
##CCA7FB1.002.0010.4910.49
#FFFFFF2.001.0021.0021.00
#00000010.4921.001.001.00
##00000010.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#95B6FE
Deuteranopia (green-blind)
#9CB7F9
Tritanopia (blue-blind)
#C5B4C6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #cca7fb;
/* rgb */ color: rgb(204, 167, 251);
/* oklch */ color: oklch(79.2% 0.122 304.0);
Tailwind
colors: {
  custom: {
    50: '#dcc1fd',
    500: '#cca7fb',
    950: '#000000',
  },
}
SCSS
$custom: #cca7fb;
$custom-light: #dcc1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cca7fb",
  "rgb": {
    "r": 204,
    "g": 167,
    "b": 251
  },
  "hsl": {
    "h": 266.429,
    "s": 91.304,
    "l": 81.961
  },
  "oklch": {
    "l": 0.79157,
    "c": 0.12237,
    "h": 304
  },
  "luminance": 0.4744
}

Semantic roles & 50–950 ramp

primary
#CCA7FB
secondary
#E7F6D5
accent
#E60080
background
#FDFBFF
surface
#FBF7FF
border
#D4D0D7
text
#151217
muted
#838185

Preview Lab

Preview with #CCA7FB

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

Preview Lab → · Contrast checker → · Palette generator →

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