#CC7FF8#CC7FF8

#CC7FF8 is a light, vivid violet. Relative luminance 0.348; OKLCH L 72.4% C 0.184 H 312.0°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#CC7FF8
RGBrgb(204, 127, 248)
HSLhsl(278, 90%, 74%)
HSVhsv(278, 49%, 97%)
CMYKcmyk(17.7%, 48.8%, 0%, 2.7%)
CIE-LABlab(65.59, 50.42, -49.02)
CIE-LCHlch(65.59, 70.32, 315.80°)
OKLaboklab(72.43% 0.1231 -0.1367)
OKLCHoklch(72.43% 0.184 312)
XYZxyz(49.4315, 34.7945, 92.9007)
Luminance0.3479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7FF8 #ABF87F
analogous
#8F7FF8 #CC7FF8 #F87FE7
triadic
#CC7FF8 #F8CC7F #7FF8CC
tetradic
#CC7FF8 #F88F7F #ABF87F #7FE7F8
square
#CC7FF8 #F88F7F #ABF87F #7FE7F8
split-complementary
#CC7FF8 #E7F87F #7FF88F
monochromatic
#9D0DF0 #B545F5 #CC7FF8 #E3B9FB #F3E2FD

Accessibility & contrast

On white

2.64
#CC7FF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#CC7FF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7FF8
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7FF8#FFFFFF#000000##000000
##CC7FF81.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#629BFC
Deuteranopia (green-blind)
#79A1F5
Tritanopia (blue-blind)
#C792B0
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cc7ff8;
/* rgb */ color: rgb(204, 127, 248);
/* oklch */ color: oklch(72.4% 0.184 312.0);
Tailwind
colors: {
  custom: {
    50: '#dea6fb',
    500: '#cc7ff8',
    950: '#000000',
  },
}
SCSS
$custom: #cc7ff8;
$custom-light: #dea6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7ff8",
  "rgb": {
    "r": 204,
    "g": 127,
    "b": 248
  },
  "hsl": {
    "h": 278.182,
    "s": 89.63,
    "l": 73.529
  },
  "oklch": {
    "l": 0.72425,
    "c": 0.18392,
    "h": 312
  },
  "luminance": 0.34793
}

Semantic roles & 50–950 ramp

primary
#CC7FF8
secondary
#E1F5D6
accent
#E60053
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7FF8

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

Preview Lab → · Contrast checker → · Palette generator →

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