#CC7AFB#CC7AFB

#CC7AFB is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.8% C 0.195 H 311.8°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#CC7AFB
RGBrgb(204, 122, 251)
HSLhsl(278, 94%, 73%)
HSVhsv(278, 51%, 98%)
CMYKcmyk(18.7%, 51.4%, 0%, 1.6%)
CIE-LABlab(64.74, 53.63, -52.01)
CIE-LCHlch(64.74, 74.71, 315.88°)
OKLaboklab(71.85% 0.13 -0.1454)
OKLCHoklch(71.85% 0.195 311.8)
XYZxyz(49.2709, 33.7225, 95.1617)
Luminance0.3372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7AFB #A9FB7A
analogous
#8B7AFB #CC7AFB #FB7AE9
triadic
#CC7AFB #FBCC7A #7AFBCC
tetradic
#CC7AFB #FB8B7A #A9FB7A #7AE9FB
square
#CC7AFB #FB8B7A #A9FB7A #7AE9FB
split-complementary
#CC7AFB #E9FB7A #7AFB8B
monochromatic
#9D07F3 #B53FF9 #CC7AFB #E3B5FD #F4E1FE

Accessibility & contrast

On white

2.71
#CC7AFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#CC7AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7AFB
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7AFB#FFFFFF#000000##000000
##CC7AFB1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5999FF
Deuteranopia (green-blind)
#729FF8
Tritanopia (blue-blind)
#C78FAF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7afb;
/* rgb */ color: rgb(204, 122, 251);
/* oklch */ color: oklch(71.8% 0.195 311.8);
Tailwind
colors: {
  custom: {
    50: '#dea3fd',
    500: '#cc7afb',
    950: '#000000',
  },
}
SCSS
$custom: #cc7afb;
$custom-light: #dea3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7afb",
  "rgb": {
    "r": 204,
    "g": 122,
    "b": 251
  },
  "hsl": {
    "h": 278.14,
    "s": 94.161,
    "l": 73.137
  },
  "oklch": {
    "l": 0.71846,
    "c": 0.19498,
    "h": 311.8
  },
  "luminance": 0.33721
}

Semantic roles & 50–950 ramp

primary
#CC7AFB
secondary
#E1F6D5
accent
#E60054
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CC7AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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