#CC7EF6#CC7EF6

#CC7EF6 is a light, vivid violet. Relative luminance 0.344; OKLCH L 72.2% C 0.183 H 312.6°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#CC7EF6
RGBrgb(204, 126, 246)
HSLhsl(279, 87%, 73%)
HSVhsv(279, 49%, 96%)
CMYKcmyk(17.1%, 48.8%, 0%, 3.5%)
CIE-LABlab(65.29, 50.52, -48.40)
CIE-LCHlch(65.29, 69.96, 316.23°)
OKLaboklab(72.17% 0.1242 -0.1349)
OKLCHoklch(72.17% 0.183 312.6)
XYZxyz(48.9944, 34.4140, 91.2325)
Luminance0.3441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EF6 #A8F67E
analogous
#907EF6 #CC7EF6 #F67EE4
triadic
#CC7EF6 #F6CC7E #7EF6CC
tetradic
#CC7EF6 #F6907E #A8F67E #7EE4F6
square
#CC7EF6 #F6907E #A8F67E #7EE4F6
split-complementary
#CC7EF6 #E4F67E #7EF690
monochromatic
#9D10E9 #B545F2 #CC7EF6 #E3B7FA #F4E2FD

Accessibility & contrast

On white

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

On black

7.88
#CC7EF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7EF6
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7EF6#FFFFFF#000000##000000
##CC7EF61.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#629AFA
Deuteranopia (green-blind)
#79A0F3
Tritanopia (blue-blind)
#C891AF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7ef6;
/* rgb */ color: rgb(204, 126, 246);
/* oklch */ color: oklch(72.2% 0.183 312.6);
Tailwind
colors: {
  custom: {
    50: '#dea5f9',
    500: '#cc7ef6',
    950: '#000000',
  },
}
SCSS
$custom: #cc7ef6;
$custom-light: #dea5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7ef6",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 246
  },
  "hsl": {
    "h": 279,
    "s": 86.957,
    "l": 72.941
  },
  "oklch": {
    "l": 0.72172,
    "c": 0.18332,
    "h": 312.6
  },
  "luminance": 0.34413
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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