#CC7EF8#CC7EF8

#CC7EF8 is a light, vivid violet. Relative luminance 0.345; OKLCH L 72.3% C 0.185 H 312.1°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#CC7EF8
RGBrgb(204, 126, 248)
HSLhsl(278, 90%, 73%)
HSVhsv(278, 49%, 97%)
CMYKcmyk(17.7%, 49.2%, 0%, 2.7%)
CIE-LABlab(65.39, 50.94, -49.34)
CIE-LCHlch(65.39, 70.92, 315.91°)
OKLaboklab(72.28% 0.1244 -0.1376)
OKLCHoklch(72.28% 0.186 312.1)
XYZxyz(49.3030, 34.5374, 92.8579)
Luminance0.3454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EF8 #AAF87E
analogous
#8F7EF8 #CC7EF8 #F87EE7
triadic
#CC7EF8 #F8CC7E #7EF8CC
tetradic
#CC7EF8 #F88F7E #AAF87E #7EE7F8
square
#CC7EF8 #F88F7E #AAF87E #7EE7F8
split-complementary
#CC7EF8 #E7F87E #7EF88F
monochromatic
#9D0DEF #B544F5 #CC7EF8 #E3B8FB #F4E2FD

Accessibility & contrast

On white

2.66
#CC7EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.91
#CC7EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7EF8
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7EF8#FFFFFF#000000##000000
##CC7EF81.002.667.917.91
#FFFFFF2.661.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#619BFC
Deuteranopia (green-blind)
#78A0F5
Tritanopia (blue-blind)
#C792B0
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cc7ef8;
/* rgb */ color: rgb(204, 126, 248);
/* oklch */ color: oklch(72.3% 0.185 312.1);
Tailwind
colors: {
  custom: {
    50: '#dea5fb',
    500: '#cc7ef8',
    950: '#000000',
  },
}
SCSS
$custom: #cc7ef8;
$custom-light: #dea5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7ef8",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 278.361,
    "s": 89.706,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72275,
    "c": 0.1855,
    "h": 312.1
  },
  "luminance": 0.34536
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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