#CC7AFC#CC7AFC

#CC7AFC is a light, vivid violet. Relative luminance 0.338; OKLCH L 71.9% C 0.196 H 311.5°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#CC7AFC
RGBrgb(204, 122, 252)
HSLhsl(278, 96%, 73%)
HSVhsv(278, 52%, 99%)
CMYKcmyk(19%, 51.6%, 0%, 1.2%)
CIE-LABlab(64.79, 53.84, -52.48)
CIE-LCHlch(64.79, 75.19, 315.74°)
OKLaboklab(71.9% 0.13 -0.1467)
OKLCHoklch(71.9% 0.196 311.5)
XYZxyz(49.4289, 33.7857, 95.9940)
Luminance0.3378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7AFC #AAFC7A
analogous
#8B7AFC #CC7AFC #FC7AEB
triadic
#CC7AFC #FCCC7A #7AFCCC
tetradic
#CC7AFC #FC8B7A #AAFC7A #7AEBFC
square
#CC7AFC #FC8B7A #AAFC7A #7AEBFC
split-complementary
#CC7AFC #EBFC7A #7AFC8B
monochromatic
#9D06F6 #B53EFB #CC7AFC #E3B6FD #F4E1FE

Accessibility & contrast

On white

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

On black

7.76
#CC7AFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7AFC
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7AFC#FFFFFF#000000##000000
##CC7AFC1.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5899FF
Deuteranopia (green-blind)
#729FF9
Tritanopia (blue-blind)
#C790B0
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7afc;
/* rgb */ color: rgb(204, 122, 252);
/* oklch */ color: oklch(71.9% 0.196 311.5);
Tailwind
colors: {
  custom: {
    50: '#dea3fe',
    500: '#cc7afc',
    950: '#000000',
  },
}
SCSS
$custom: #cc7afc;
$custom-light: #dea3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7afc",
  "rgb": {
    "r": 204,
    "g": 122,
    "b": 252
  },
  "hsl": {
    "h": 277.846,
    "s": 95.588,
    "l": 73.333
  },
  "oklch": {
    "l": 0.719,
    "c": 0.19605,
    "h": 311.5
  },
  "luminance": 0.33785
}

Semantic roles & 50–950 ramp

primary
#CC7AFC
secondary
#E1F7D4
accent
#E60055
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CC7AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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