#CC7AF9#CC7AF9

#CC7AF9 is a light, vivid violet. Relative luminance 0.336; OKLCH L 71.7% C 0.193 H 312.3°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#CC7AF9
RGBrgb(204, 122, 249)
HSLhsl(279, 91%, 73%)
HSVhsv(279, 51%, 98%)
CMYKcmyk(18.1%, 51%, 0%, 2.4%)
CIE-LABlab(64.64, 53.21, -51.07)
CIE-LCHlch(64.64, 73.75, 316.18°)
OKLaboklab(71.74% 0.1298 -0.1426)
OKLCHoklch(71.74% 0.193 312.3)
XYZxyz(48.9573, 33.5971, 93.5101)
Luminance0.3360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7AF9 #A7F97A
analogous
#8C7AF9 #CC7AF9 #F97AE7
triadic
#CC7AF9 #F9CC7A #7AF9CC
tetradic
#CC7AF9 #F98C7A #A7F97A #7AE7F9
square
#CC7AF9 #F98C7A #A7F97A #7AE7F9
split-complementary
#CC7AF9 #E7F97A #7AF98C
monochromatic
#9D0BEE #B63FF6 #CC7AF9 #E2B5FC #F4E2FE

Accessibility & contrast

On white

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

On black

7.72
#CC7AF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7AF9
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7AF9#FFFFFF#000000##000000
##CC7AF91.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A98FD
Deuteranopia (green-blind)
#749FF6
Tritanopia (blue-blind)
#C78FAE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7af9;
/* rgb */ color: rgb(204, 122, 249);
/* oklch */ color: oklch(71.7% 0.193 312.3);
Tailwind
colors: {
  custom: {
    50: '#dea3fc',
    500: '#cc7af9',
    950: '#000000',
  },
}
SCSS
$custom: #cc7af9;
$custom-light: #dea3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7af9",
  "rgb": {
    "r": 204,
    "g": 122,
    "b": 249
  },
  "hsl": {
    "h": 278.74,
    "s": 91.367,
    "l": 72.745
  },
  "oklch": {
    "l": 0.71739,
    "c": 0.19283,
    "h": 312.3
  },
  "luminance": 0.33596
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7AF9

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

Preview Lab → · Contrast checker → · Palette generator →

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