#CC7CF8#CC7CF8

#CC7CF8 is a light, vivid violet. Relative luminance 0.340; OKLCH L 72.0% C 0.189 H 312.3°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#CC7CF8
RGBrgb(204, 124, 248)
HSLhsl(279, 90%, 73%)
HSVhsv(279, 50%, 97%)
CMYKcmyk(17.7%, 50%, 0%, 2.7%)
CIE-LABlab(64.99, 51.97, -49.97)
CIE-LCHlch(64.99, 72.10, 316.12°)
OKLaboklab(71.98% 0.127 -0.1394)
OKLCHoklch(71.98% 0.189 312.3)
XYZxyz(49.0498, 34.0311, 92.7735)
Luminance0.3403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7CF8 #A8F87C
analogous
#8E7CF8 #CC7CF8 #F87CE6
triadic
#CC7CF8 #F8CC7C #7CF8CC
tetradic
#CC7CF8 #F88E7C #A8F87C #7CE6F8
square
#CC7CF8 #F88E7C #A8F87C #7CE6F8
split-complementary
#CC7CF8 #E6F87C #7CF88E
monochromatic
#9D0DED #B542F5 #CC7CF8 #E3B6FB #F4E2FD

Accessibility & contrast

On white

2.69
#CC7CF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#CC7CF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7CF8
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7CF8#FFFFFF#000000##000000
##CC7CF81.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E99FC
Deuteranopia (green-blind)
#76A0F5
Tritanopia (blue-blind)
#C890AF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7cf8;
/* rgb */ color: rgb(204, 124, 248);
/* oklch */ color: oklch(72.0% 0.189 312.3);
Tailwind
colors: {
  custom: {
    50: '#dea4fb',
    500: '#cc7cf8',
    950: '#000000',
  },
}
SCSS
$custom: #cc7cf8;
$custom-light: #dea4fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7cf8",
  "rgb": {
    "r": 204,
    "g": 124,
    "b": 248
  },
  "hsl": {
    "h": 278.71,
    "s": 89.855,
    "l": 72.941
  },
  "oklch": {
    "l": 0.71979,
    "c": 0.18864,
    "h": 312.3
  },
  "luminance": 0.3403
}

Semantic roles & 50–950 ramp

primary
#CC7CF8
secondary
#E1F6D5
accent
#E60051
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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