#CC7AF8#CC7AF8

#CC7AF8 is a light, vivid violet. Relative luminance 0.335; OKLCH L 71.7% C 0.192 H 312.6°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#CC7AF8
RGBrgb(204, 122, 248)
HSLhsl(279, 90%, 73%)
HSVhsv(279, 51%, 97%)
CMYKcmyk(17.7%, 50.8%, 0%, 2.7%)
CIE-LABlab(64.59, 53.00, -50.60)
CIE-LCHlch(64.59, 73.27, 316.33°)
OKLaboklab(71.69% 0.1297 -0.1413)
OKLCHoklch(71.69% 0.192 312.6)
XYZxyz(48.8017, 33.5349, 92.6908)
Luminance0.3353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7AF8 #A6F87A
analogous
#8D7AF8 #CC7AF8 #F87AE5
triadic
#CC7AF8 #F8CC7A #7AF8CC
tetradic
#CC7AF8 #F88D7A #A6F87A #7AE5F8
square
#CC7AF8 #F88D7A #A6F87A #7AE5F8
split-complementary
#CC7AF8 #E5F87A #7AF88D
monochromatic
#9D0CEB #B640F5 #CC7AF8 #E2B4FB #F4E2FD

Accessibility & contrast

On white

2.72
#CC7AF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#CC7AF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7AF8
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7AF8#FFFFFF#000000##000000
##CC7AF81.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B98FC
Deuteranopia (green-blind)
#749FF5
Tritanopia (blue-blind)
#C88EAE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7af8;
/* rgb */ color: rgb(204, 122, 248);
/* oklch */ color: oklch(71.7% 0.192 312.6);
Tailwind
colors: {
  custom: {
    50: '#dea3fb',
    500: '#cc7af8',
    950: '#000000',
  },
}
SCSS
$custom: #cc7af8;
$custom-light: #dea3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7af8",
  "rgb": {
    "r": 204,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 279.048,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.71686,
    "c": 0.19176,
    "h": 312.6
  },
  "luminance": 0.33534
}

Semantic roles & 50–950 ramp

primary
#CC7AF8
secondary
#E1F6D5
accent
#E60050
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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