#CC7EFF#CC7EFF

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

Color values

HEX#CC7EFF
RGBrgb(204, 126, 255)
HSLhsl(276, 100%, 75%)
HSVhsv(276, 51%, 100%)
CMYKcmyk(20%, 50.6%, 0%, 0%)
CIE-LABlab(65.73, 52.43, -52.63)
CIE-LCHlch(65.73, 74.29, 314.89°)
OKLaboklab(72.65% 0.1251 -0.1472)
OKLCHoklch(72.65% 0.193 310.4)
XYZxyz(50.4094, 34.9800, 98.6846)
Luminance0.3498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EFF #B1FF7E
analogous
#8C7EFF #CC7EFF #FF7EF2
triadic
#CC7EFF #FFCC7E #7EFFCC
tetradic
#CC7EFF #FF8C7E #B1FF7E #7EF2FF
square
#CC7EFF #FF8C7E #B1FF7E #7EF2FF
split-complementary
#CC7EFF #F2FF7E #7EFF8C
monochromatic
#9C04FF #B441FF #CC7EFF #E4BBFF #F3E0FF

Accessibility & contrast

On white

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

On black

8.00
#CC7EFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7EFF
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7EFF#FFFFFF#000000##000000
##CC7EFF1.002.638.008.00
#FFFFFF2.631.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9CFF
Deuteranopia (green-blind)
#74A1FC
Tritanopia (blue-blind)
#C694B3
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cc7eff;
/* rgb */ color: rgb(204, 126, 255);
/* oklch */ color: oklch(72.6% 0.193 310.4);
Tailwind
colors: {
  custom: {
    50: '#dea6ff',
    500: '#cc7eff',
    950: '#000000',
  },
}
SCSS
$custom: #cc7eff;
$custom-light: #dea6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7eff",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 255
  },
  "hsl": {
    "h": 276.279,
    "s": 100,
    "l": 74.706
  },
  "oklch": {
    "l": 0.72645,
    "c": 0.19316,
    "h": 310.4
  },
  "luminance": 0.34979
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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