#CC7DF6#CC7DF6

#CC7DF6 is a light, vivid violet. Relative luminance 0.342; OKLCH L 72.0% C 0.185 H 312.7°. Best body text is #000000 at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#CC7DF6
RGBrgb(204, 125, 246)
HSLhsl(279, 87%, 73%)
HSVhsv(279, 49%, 96%)
CMYKcmyk(17.1%, 49.2%, 0%, 3.5%)
CIE-LABlab(65.09, 51.03, -48.71)
CIE-LCHlch(65.09, 70.55, 316.33°)
OKLaboklab(72.02% 0.1255 -0.1358)
OKLCHoklch(72.02% 0.185 312.7)
XYZxyz(48.8672, 34.1595, 91.1901)
Luminance0.3416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7DF6 #A7F67D
analogous
#907DF6 #CC7DF6 #F67DE3
triadic
#CC7DF6 #F6CC7D #7DF6CC
tetradic
#CC7DF6 #F6907D #A7F67D #7DE3F6
square
#CC7DF6 #F6907D #A7F67D #7DE3F6
split-complementary
#CC7DF6 #E3F67D #7DF690
monochromatic
#9D10E9 #B644F2 #CC7DF6 #E2B6FA #F4E2FD

Accessibility & contrast

On white

2.68
#CC7DF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.83
#CC7DF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7DF6
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7DF6#FFFFFF#000000##000000
##CC7DF61.002.687.837.83
#FFFFFF2.681.0021.0021.00
#0000007.8321.001.001.00
##0000007.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#619AFA
Deuteranopia (green-blind)
#78A0F3
Tritanopia (blue-blind)
#C890AE
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7df6;
/* rgb */ color: rgb(204, 125, 246);
/* oklch */ color: oklch(72.0% 0.185 312.7);
Tailwind
colors: {
  custom: {
    50: '#dea5f9',
    500: '#cc7df6',
    950: '#000000',
  },
}
SCSS
$custom: #cc7df6;
$custom-light: #dea5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7df6",
  "rgb": {
    "r": 204,
    "g": 125,
    "b": 246
  },
  "hsl": {
    "h": 279.174,
    "s": 87.05,
    "l": 72.745
  },
  "oklch": {
    "l": 0.72023,
    "c": 0.1849,
    "h": 312.7
  },
  "luminance": 0.34158
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7DF6

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

Preview Lab → · Contrast checker → · Palette generator →

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