#CC7DF2#CC7DF2

#CC7DF2 is a light, vivid purple. Relative luminance 0.339; OKLCH L 71.8% C 0.181 H 313.8°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#CC7DF2
RGBrgb(204, 125, 242)
HSLhsl(281, 82%, 72%)
HSVhsv(281, 48%, 95%)
CMYKcmyk(15.7%, 48.3%, 0%, 5.1%)
CIE-LABlab(64.90, 50.20, -46.81)
CIE-LCHlch(64.90, 68.64, 317.00°)
OKLaboklab(71.82% 0.125 -0.1303)
OKLCHoklch(71.82% 0.181 313.8)
XYZxyz(48.2598, 33.9166, 87.9915)
Luminance0.3392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7DF2 #A3F27D
analogous
#927DF2 #CC7DF2 #F27DDD
triadic
#CC7DF2 #F2CC7D #7DF2CC
tetradic
#CC7DF2 #F2927D #A3F27D #7DDDF2
square
#CC7DF2 #F2927D #A3F27D #7DDDF2
split-complementary
#CC7DF2 #DDF27D #7DF292
monochromatic
#9D16DE #B645EC #CC7DF2 #E2B5F8 #F4E3FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC7DF2#FFFFFF#000000##000000
##CC7DF21.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)
#6399F6
Deuteranopia (green-blind)
#7AA0EF
Tritanopia (blue-blind)
#C98FAC
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7df2;
/* rgb */ color: rgb(204, 125, 242);
/* oklch */ color: oklch(71.8% 0.181 313.8);
Tailwind
colors: {
  custom: {
    50: '#dea5f7',
    500: '#cc7df2',
    950: '#000000',
  },
}
SCSS
$custom: #cc7df2;
$custom-light: #dea5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7df2",
  "rgb": {
    "r": 204,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 280.513,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.71817,
    "c": 0.18057,
    "h": 313.8
  },
  "luminance": 0.33915
}

Semantic roles & 50–950 ramp

primary
#CC7DF2
secondary
#E0F4D7
accent
#DE074D
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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