#CC7AFA#CC7AFA

#CC7AFA is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.8% C 0.194 H 312.0°. Best body text is #000000 at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#CC7AFA
RGBrgb(204, 122, 250)
HSLhsl(278, 93%, 73%)
HSVhsv(278, 51%, 98%)
CMYKcmyk(18.4%, 51.2%, 0%, 2%)
CIE-LABlab(64.69, 53.42, -51.54)
CIE-LCHlch(64.69, 74.23, 316.03°)
OKLaboklab(71.79% 0.1299 -0.144)
OKLCHoklch(71.79% 0.194 312)
XYZxyz(49.1137, 33.6596, 94.3337)
Luminance0.3366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7AFA #A8FA7A
analogous
#8C7AFA #CC7AFA #FA7AE8
triadic
#CC7AFA #FACC7A #7AFACC
tetradic
#CC7AFA #FA8C7A #A8FA7A #7AE8FA
square
#CC7AFA #FA8C7A #A8FA7A #7AE8FA
split-complementary
#CC7AFA #E8FA7A #7AFA8C
monochromatic
#9D09F1 #B53FF8 #CC7AFA #E3B5FC #F4E2FE

Accessibility & contrast

On white

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

On black

7.73
#CC7AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7AFA
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7AFA#FFFFFF#000000##000000
##CC7AFA1.002.727.737.73
#FFFFFF2.721.0021.0021.00
#0000007.7321.001.001.00
##0000007.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5999FE
Deuteranopia (green-blind)
#739FF7
Tritanopia (blue-blind)
#C78FAF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7afa;
/* rgb */ color: rgb(204, 122, 250);
/* oklch */ color: oklch(71.8% 0.194 312.0);
Tailwind
colors: {
  custom: {
    50: '#dea3fc',
    500: '#cc7afa',
    950: '#000000',
  },
}
SCSS
$custom: #cc7afa;
$custom-light: #dea3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7afa",
  "rgb": {
    "r": 204,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 278.438,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.71793,
    "c": 0.19391,
    "h": 312
  },
  "luminance": 0.33659
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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