#CC7CF6#CC7CF6

#CC7CF6 is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.9% C 0.186 H 312.9°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#CC7CF6
RGBrgb(204, 124, 246)
HSLhsl(279, 87%, 73%)
HSVhsv(279, 50%, 96%)
CMYKcmyk(17.1%, 49.6%, 0%, 3.5%)
CIE-LABlab(64.89, 51.55, -49.03)
CIE-LCHlch(64.89, 71.14, 316.44°)
OKLaboklab(71.88% 0.1268 -0.1367)
OKLCHoklch(71.88% 0.186 312.9)
XYZxyz(48.7412, 33.9076, 91.1481)
Luminance0.3391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7CF6 #A6F67C
analogous
#8F7CF6 #CC7CF6 #F67CE3
triadic
#CC7CF6 #F6CC7C #7CF6CC
tetradic
#CC7CF6 #F68F7C #A6F67C #7CE3F6
square
#CC7CF6 #F68F7C #A6F67C #7CE3F6
split-complementary
#CC7CF6 #E3F67C #7CF68F
monochromatic
#9D10E8 #B643F2 #CC7CF6 #E2B5FA #F4E2FD

Accessibility & contrast

On white

2.70
#CC7CF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#CC7CF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7CF6
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7CF6#FFFFFF#000000##000000
##CC7CF61.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F99FA
Deuteranopia (green-blind)
#779FF3
Tritanopia (blue-blind)
#C88FAE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7cf6;
/* rgb */ color: rgb(204, 124, 246);
/* oklch */ color: oklch(71.9% 0.186 312.9);
Tailwind
colors: {
  custom: {
    50: '#dea4f9',
    500: '#cc7cf6',
    950: '#000000',
  },
}
SCSS
$custom: #cc7cf6;
$custom-light: #dea4f9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7cf6",
  "rgb": {
    "r": 204,
    "g": 124,
    "b": 246
  },
  "hsl": {
    "h": 279.344,
    "s": 87.143,
    "l": 72.549
  },
  "oklch": {
    "l": 0.71875,
    "c": 0.18647,
    "h": 312.9
  },
  "luminance": 0.33906
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7CF6

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

Preview Lab → · Contrast checker → · Palette generator →

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