#CC7AFE#CC7AFE

#CC7AFE is a light, vivid violet. Relative luminance 0.339; OKLCH L 72.0% C 0.198 H 311.1°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#CC7AFE
RGBrgb(204, 122, 254)
HSLhsl(277, 99%, 74%)
HSVhsv(277, 52%, 100%)
CMYKcmyk(19.7%, 52%, 0%, 0.4%)
CIE-LABlab(64.89, 54.27, -53.41)
CIE-LCHlch(64.89, 76.14, 315.45°)
OKLaboklab(72.01% 0.1302 -0.1495)
OKLCHoklch(72.01% 0.198 311.1)
XYZxyz(49.7475, 33.9132, 97.6720)
Luminance0.3391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7AFE #ACFE7A
analogous
#8A7AFE #CC7AFE #FE7AEE
triadic
#CC7AFE #FECC7A #7AFECC
tetradic
#CC7AFE #FE8A7A #ACFE7A #7AEEFE
square
#CC7AFE #FE8A7A #ACFE7A #7AEEFE
split-complementary
#CC7AFE #EEFE7A #7AFE8A
monochromatic
#9D02FC #B53DFE #CC7AFE #E3B7FE #F3E1FF

Accessibility & contrast

On white

2.70
#CC7AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#CC7AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7AFE
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7AFE#FFFFFF#000000##000000
##CC7AFE1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5699FF
Deuteranopia (green-blind)
#709FFB
Tritanopia (blue-blind)
#C690B1
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7afe;
/* rgb */ color: rgb(204, 122, 254);
/* oklch */ color: oklch(72.0% 0.198 311.1);
Tailwind
colors: {
  custom: {
    50: '#dea3ff',
    500: '#cc7afe',
    950: '#000000',
  },
}
SCSS
$custom: #cc7afe;
$custom-light: #dea3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7afe",
  "rgb": {
    "r": 204,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 277.273,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72008,
    "c": 0.19822,
    "h": 311.1
  },
  "luminance": 0.33912
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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