#CC7EFC#CC7EFC

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

Color values

HEX#CC7EFC
RGBrgb(204, 126, 252)
HSLhsl(277, 95%, 74%)
HSVhsv(277, 50%, 99%)
CMYKcmyk(19%, 50%, 0%, 1.2%)
CIE-LABlab(65.58, 51.79, -51.22)
CIE-LCHlch(65.58, 72.84, 315.31°)
OKLaboklab(72.49% 0.1248 -0.1431)
OKLCHoklch(72.49% 0.19 311.1)
XYZxyz(49.9302, 34.7883, 96.1611)
Luminance0.3479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EFC #AEFC7E
analogous
#8D7EFC #CC7EFC #FC7EED
triadic
#CC7EFC #FCCC7E #7EFCCC
tetradic
#CC7EFC #FC8D7E #AEFC7E #7EEDFC
square
#CC7EFC #FC8D7E #AEFC7E #7EEDFC
split-complementary
#CC7EFC #EDFC7E #7EFC8D
monochromatic
#9D06F9 #B442FB #CC7EFC #E4BAFD #F3E1FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC7EFC#FFFFFF#000000##000000
##CC7EFC1.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)
#5E9BFF
Deuteranopia (green-blind)
#75A1F9
Tritanopia (blue-blind)
#C793B2
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cc7efc;
/* rgb */ color: rgb(204, 126, 252);
/* oklch */ color: oklch(72.5% 0.190 311.1);
Tailwind
colors: {
  custom: {
    50: '#dea5fe',
    500: '#cc7efc',
    950: '#000000',
  },
}
SCSS
$custom: #cc7efc;
$custom-light: #dea5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7efc",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 252
  },
  "hsl": {
    "h": 277.143,
    "s": 95.455,
    "l": 74.118
  },
  "oklch": {
    "l": 0.72485,
    "c": 0.18988,
    "h": 311.1
  },
  "luminance": 0.34787
}

Semantic roles & 50–950 ramp

primary
#CC7EFC
secondary
#E1F7D4
accent
#E60057
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F18
muted
#837F86

Preview Lab

Preview with #CC7EFC

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

Preview Lab → · Contrast checker → · Palette generator →

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