#CC7DEF#CC7DEF

#CC7DEF is a light, vivid purple. Relative luminance 0.337; OKLCH L 71.7% C 0.177 H 314.7°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#CC7DEF
RGBrgb(204, 125, 239)
HSLhsl(282, 78%, 71%)
HSVhsv(282, 48%, 94%)
CMYKcmyk(14.6%, 47.7%, 0%, 6.3%)
CIE-LABlab(64.75, 49.58, -45.38)
CIE-LCHlch(64.75, 67.21, 317.53°)
OKLaboklab(71.67% 0.1247 -0.1261)
OKLCHoklch(71.67% 0.177 314.7)
XYZxyz(47.8130, 33.7379, 85.6380)
Luminance0.3374 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7DEF #A0EF7D
analogous
#937DEF #CC7DEF #EF7DD9
triadic
#CC7DEF #EFCC7D #7DEFCC
tetradic
#CC7DEF #EF937D #A0EF7D #7DD9EF
square
#CC7DEF #EF937D #A0EF7D #7DD9EF
split-complementary
#CC7DEF #D9EF7D #7DEF93
monochromatic
#9D1AD7 #B747E8 #CC7DEF #E1B3F6 #F4E4FC

Accessibility & contrast

On white

2.71
#CC7DEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#CC7DEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7DEF
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7DEF#FFFFFF#000000##000000
##CC7DEF1.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6598F3
Deuteranopia (green-blind)
#7C9FEC
Tritanopia (blue-blind)
#CA8EAB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7def;
/* rgb */ color: rgb(204, 125, 239);
/* oklch */ color: oklch(71.7% 0.177 314.7);
Tailwind
colors: {
  custom: {
    50: '#dea5f4',
    500: '#cc7def',
    950: '#000000',
  },
}
SCSS
$custom: #cc7def;
$custom-light: #dea5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7def",
  "rgb": {
    "r": 204,
    "g": 125,
    "b": 239
  },
  "hsl": {
    "h": 281.579,
    "s": 78.082,
    "l": 71.373
  },
  "oklch": {
    "l": 0.71665,
    "c": 0.17733,
    "h": 314.7
  },
  "luminance": 0.33737
}

Semantic roles & 50–950 ramp

primary
#CC7DEF
secondary
#DEF3D5
accent
#DA0B4B
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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