#CC7AFD#CC7AFD

#CC7AFD is a light, vivid violet. Relative luminance 0.338; OKLCH L 72.0% C 0.197 H 311.3°. Best body text is #000000 at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#CC7AFD
RGBrgb(204, 122, 253)
HSLhsl(278, 97%, 74%)
HSVhsv(278, 52%, 99%)
CMYKcmyk(19.4%, 51.8%, 0%, 0.8%)
CIE-LABlab(64.84, 54.05, -52.95)
CIE-LCHlch(64.84, 75.67, 315.59°)
OKLaboklab(71.95% 0.1301 -0.1481)
OKLCHoklch(71.95% 0.197 311.3)
XYZxyz(49.5878, 33.8493, 96.8308)
Luminance0.3385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7AFD #ABFD7A
analogous
#8A7AFD #CC7AFD #FD7AED
triadic
#CC7AFD #FDCC7A #7AFDCC
tetradic
#CC7AFD #FD8A7A #ABFD7A #7AEDFD
square
#CC7AFD #FD8A7A #ABFD7A #7AEDFD
split-complementary
#CC7AFD #EDFD7A #7AFD8A
monochromatic
#9D04F9 #B53EFC #CC7AFD #E3B6FE #F3E1FF

Accessibility & contrast

On white

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

On black

7.77
#CC7AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7AFD
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7AFD#FFFFFF#000000##000000
##CC7AFD1.002.707.777.77
#FFFFFF2.701.0021.0021.00
#0000007.7721.001.001.00
##0000007.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5799FF
Deuteranopia (green-blind)
#719FFA
Tritanopia (blue-blind)
#C690B0
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7afd;
/* rgb */ color: rgb(204, 122, 253);
/* oklch */ color: oklch(72.0% 0.197 311.3);
Tailwind
colors: {
  custom: {
    50: '#dea3fe',
    500: '#cc7afd',
    950: '#000000',
  },
}
SCSS
$custom: #cc7afd;
$custom-light: #dea3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7afd",
  "rgb": {
    "r": 204,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 277.557,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.71954,
    "c": 0.19713,
    "h": 311.3
  },
  "luminance": 0.33848
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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