#CC7FFC#CC7FFC

#CC7FFC is a light, vivid violet. Relative luminance 0.350; OKLCH L 72.6% C 0.188 H 311.0°. Best body text is #000000 at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#CC7FFC
RGBrgb(204, 127, 252)
HSLhsl(277, 95%, 74%)
HSVhsv(277, 50%, 99%)
CMYKcmyk(19%, 49.6%, 0%, 1.2%)
CIE-LABlab(65.78, 51.27, -50.91)
CIE-LCHlch(65.78, 72.25, 315.20°)
OKLaboklab(72.63% 0.1235 -0.1422)
OKLCHoklch(72.63% 0.188 311)
XYZxyz(50.0587, 35.0453, 96.2040)
Luminance0.3504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7FFC #AFFC7F
analogous
#8E7FFC #CC7FFC #FC7FEE
triadic
#CC7FFC #FCCC7F #7FFCCC
tetradic
#CC7FFC #FC8E7F #AFFC7F #7FEEFC
square
#CC7FFC #FC8E7F #AFFC7F #7FEEFC
split-complementary
#CC7FFC #EEFC7F #7FFC8E
monochromatic
#9C07F9 #B443FB #CC7FFC #E4BBFD #F3E1FE

Accessibility & contrast

On white

2.62
#CC7FFC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.01
#CC7FFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7FFC
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7FFC#FFFFFF#000000##000000
##CC7FFC1.002.628.018.01
#FFFFFF2.621.0021.0021.00
#0000008.0121.001.001.00
##0000008.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#609CFF
Deuteranopia (green-blind)
#76A1F9
Tritanopia (blue-blind)
#C693B2
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cc7ffc;
/* rgb */ color: rgb(204, 127, 252);
/* oklch */ color: oklch(72.6% 0.188 311.0);
Tailwind
colors: {
  custom: {
    50: '#dea6fe',
    500: '#cc7ffc',
    950: '#000000',
  },
}
SCSS
$custom: #cc7ffc;
$custom-light: #dea6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7ffc",
  "rgb": {
    "r": 204,
    "g": 127,
    "b": 252
  },
  "hsl": {
    "h": 276.96,
    "s": 95.42,
    "l": 74.314
  },
  "oklch": {
    "l": 0.72634,
    "c": 0.18831,
    "h": 311
  },
  "luminance": 0.35044
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7FFC

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

Preview Lab → · Contrast checker → · Palette generator →

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