#CC7AFF#CC7AFF

#CC7AFF is a light, vivid violet. Relative luminance 0.340; OKLCH L 72.1% C 0.199 H 310.8°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#CC7AFF
RGBrgb(204, 122, 255)
HSLhsl(277, 100%, 74%)
HSVhsv(277, 52%, 100%)
CMYKcmyk(20%, 52.2%, 0%, 0%)
CIE-LABlab(64.94, 54.48, -53.88)
CIE-LCHlch(64.94, 76.62, 315.32°)
OKLaboklab(72.06% 0.1303 -0.1508)
OKLCHoklch(72.06% 0.199 310.8)
XYZxyz(49.9081, 33.9774, 98.5175)
Luminance0.3398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7AFF #ADFF7A
analogous
#8A7AFF #CC7AFF #FF7AF0
triadic
#CC7AFF #FFCC7A #7AFFCC
tetradic
#CC7AFF #FF8A7A #ADFF7A #7AF0FF
square
#CC7AFF #FF8A7A #ADFF7A #7AF0FF
split-complementary
#CC7AFF #F0FF7A #7AFF8A
monochromatic
#9D00FF #B53DFF #CC7AFF #E3B7FF #F3E0FF

Accessibility & contrast

On white

2.69
#CC7AFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#CC7AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7AFF
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7AFF#FFFFFF#000000##000000
##CC7AFF1.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#559AFF
Deuteranopia (green-blind)
#709FFC
Tritanopia (blue-blind)
#C691B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7aff;
/* rgb */ color: rgb(204, 122, 255);
/* oklch */ color: oklch(72.1% 0.199 310.8);
Tailwind
colors: {
  custom: {
    50: '#dea3ff',
    500: '#cc7aff',
    950: '#000000',
  },
}
SCSS
$custom: #cc7aff;
$custom-light: #dea3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7aff",
  "rgb": {
    "r": 204,
    "g": 122,
    "b": 255
  },
  "hsl": {
    "h": 276.992,
    "s": 100,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72062,
    "c": 0.19929,
    "h": 310.8
  },
  "luminance": 0.33976
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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