#CC7DF8#CC7DF8

#CC7DF8 is a light, vivid violet. Relative luminance 0.343; OKLCH L 72.1% C 0.187 H 312.2°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#CC7DF8
RGBrgb(204, 125, 248)
HSLhsl(279, 90%, 73%)
HSVhsv(279, 50%, 97%)
CMYKcmyk(17.7%, 49.6%, 0%, 2.7%)
CIE-LABlab(65.19, 51.45, -49.66)
CIE-LCHlch(65.19, 71.51, 316.02°)
OKLaboklab(72.13% 0.1257 -0.1385)
OKLCHoklch(72.13% 0.187 312.2)
XYZxyz(49.1758, 34.2830, 92.8155)
Luminance0.3428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7DF8 #A9F87D
analogous
#8E7DF8 #CC7DF8 #F87DE6
triadic
#CC7DF8 #F8CC7D #7DF8CC
tetradic
#CC7DF8 #F88E7D #A9F87D #7DE6F8
square
#CC7DF8 #F88E7D #A9F87D #7DE6F8
split-complementary
#CC7DF8 #E6F87D #7DF88E
monochromatic
#9D0DEE #B543F5 #CC7DF8 #E3B7FB #F4E2FD

Accessibility & contrast

On white

2.67
#CC7DF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#CC7DF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7DF8
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7DF8#FFFFFF#000000##000000
##CC7DF81.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9AFC
Deuteranopia (green-blind)
#77A0F5
Tritanopia (blue-blind)
#C891AF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7df8;
/* rgb */ color: rgb(204, 125, 248);
/* oklch */ color: oklch(72.1% 0.187 312.2);
Tailwind
colors: {
  custom: {
    50: '#dea5fb',
    500: '#cc7df8',
    950: '#000000',
  },
}
SCSS
$custom: #cc7df8;
$custom-light: #dea5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7df8",
  "rgb": {
    "r": 204,
    "g": 125,
    "b": 248
  },
  "hsl": {
    "h": 278.537,
    "s": 89.781,
    "l": 73.137
  },
  "oklch": {
    "l": 0.72127,
    "c": 0.18707,
    "h": 312.2
  },
  "luminance": 0.34282
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC7DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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