#CC7FFA#CC7FFA

#CC7FFA is a light, vivid violet. Relative luminance 0.349; OKLCH L 72.5% C 0.186 H 311.5°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#CC7FFA
RGBrgb(204, 127, 250)
HSLhsl(278, 92%, 74%)
HSVhsv(278, 49%, 98%)
CMYKcmyk(18.4%, 49.2%, 0%, 2%)
CIE-LABlab(65.69, 50.84, -49.97)
CIE-LCHlch(65.69, 71.29, 315.50°)
OKLaboklab(72.53% 0.1233 -0.1394)
OKLCHoklch(72.53% 0.186 311.5)
XYZxyz(49.7435, 34.9192, 94.5436)
Luminance0.3492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7FFA #ADFA7F
analogous
#8F7FFA #CC7FFA #FA7FEB
triadic
#CC7FFA #FACC7F #7FFACC
tetradic
#CC7FFA #FA8F7F #ADFA7F #7FEBFA
square
#CC7FFA #FA8F7F #ADFA7F #7FEBFA
split-complementary
#CC7FFA #EBFA7F #7FFA8F
monochromatic
#9D0AF5 #B544F8 #CC7FFA #E3BAFC #F3E2FE

Accessibility & contrast

On white

2.63
#CC7FFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#CC7FFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7FFA
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7FFA#FFFFFF#000000##000000
##CC7FFA1.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#619CFE
Deuteranopia (green-blind)
#78A1F7
Tritanopia (blue-blind)
#C793B1
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cc7ffa;
/* rgb */ color: rgb(204, 127, 250);
/* oklch */ color: oklch(72.5% 0.186 311.5);
Tailwind
colors: {
  custom: {
    50: '#dea6fc',
    500: '#cc7ffa',
    950: '#000000',
  },
}
SCSS
$custom: #cc7ffa;
$custom-light: #dea6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7ffa",
  "rgb": {
    "r": 204,
    "g": 127,
    "b": 250
  },
  "hsl": {
    "h": 277.561,
    "s": 92.481,
    "l": 73.922
  },
  "oklch": {
    "l": 0.72529,
    "c": 0.18612,
    "h": 311.5
  },
  "luminance": 0.34918
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7FFA

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

Preview Lab → · Contrast checker → · Palette generator →

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