#CC7CFC#CC7CFC

#CC7CFC is a light, vivid violet. Relative luminance 0.343; OKLCH L 72.2% C 0.193 H 311.3°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#CC7CFC
RGBrgb(204, 124, 252)
HSLhsl(278, 96%, 74%)
HSVhsv(278, 51%, 99%)
CMYKcmyk(19%, 50.8%, 0%, 1.2%)
CIE-LABlab(65.19, 52.82, -51.85)
CIE-LCHlch(65.19, 74.02, 315.53°)
OKLaboklab(72.19% 0.1274 -0.1449)
OKLCHoklch(72.19% 0.193 311.3)
XYZxyz(49.6770, 34.2820, 96.0767)
Luminance0.3428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7CFC #ACFC7C
analogous
#8C7CFC #CC7CFC #FC7CEC
triadic
#CC7CFC #FCCC7C #7CFCCC
tetradic
#CC7CFC #FC8C7C #ACFC7C #7CECFC
square
#CC7CFC #FC8C7C #ACFC7C #7CECFC
split-complementary
#CC7CFC #ECFC7C #7CFC8C
monochromatic
#9D06F8 #B540FB #CC7CFC #E3B8FD #F3E1FE

Accessibility & contrast

On white

2.67
#CC7CFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#CC7CFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7CFC
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7CFC#FFFFFF#000000##000000
##CC7CFC1.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B9AFF
Deuteranopia (green-blind)
#74A0F9
Tritanopia (blue-blind)
#C791B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7cfc;
/* rgb */ color: rgb(204, 124, 252);
/* oklch */ color: oklch(72.2% 0.193 311.3);
Tailwind
colors: {
  custom: {
    50: '#dea4fe',
    500: '#cc7cfc',
    950: '#000000',
  },
}
SCSS
$custom: #cc7cfc;
$custom-light: #dea4fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7cfc",
  "rgb": {
    "r": 204,
    "g": 124,
    "b": 252
  },
  "hsl": {
    "h": 277.5,
    "s": 95.522,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72191,
    "c": 0.19297,
    "h": 311.3
  },
  "luminance": 0.34281
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7CFC

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

Preview Lab → · Contrast checker → · Palette generator →

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