#CC7DEB#CC7DEB

#CC7DEB is a light, vivid purple. Relative luminance 0.335; OKLCH L 71.5% C 0.173 H 315.8°. Best body text is #000000 at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#CC7DEB
RGBrgb(204, 125, 235)
HSLhsl(283, 73%, 71%)
HSVhsv(283, 47%, 92%)
CMYKcmyk(13.2%, 46.8%, 0%, 7.8%)
CIE-LABlab(64.57, 48.76, -43.47)
CIE-LCHlch(64.57, 65.32, 318.28°)
OKLaboklab(71.47% 0.1241 -0.1206)
OKLCHoklch(71.47% 0.173 315.8)
XYZxyz(47.2286, 33.5041, 82.5602)
Luminance0.3350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7DEB #9CEB7D
analogous
#957DEB #CC7DEB #EB7DD3
triadic
#CC7DEB #EBCC7D #7DEBCC
tetradic
#CC7DEB #EB957D #9CEB7D #7DD3EB
square
#CC7DEB #EB957D #9CEB7D #7DD3EB
split-complementary
#CC7DEB #D3EB7D #7DEB95
monochromatic
#9D20CE #B748E3 #CC7DEB #E1B2F3 #F5E4FB

Accessibility & contrast

On white

2.73
#CC7DEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.70
#CC7DEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7DEB
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7DEB#FFFFFF#000000##000000
##CC7DEB1.002.737.707.70
#FFFFFF2.731.0021.0021.00
#0000007.7021.001.001.00
##0000007.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6898EF
Deuteranopia (green-blind)
#7E9FE8
Tritanopia (blue-blind)
#CA8DA9
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7deb;
/* rgb */ color: rgb(204, 125, 235);
/* oklch */ color: oklch(71.5% 0.173 315.8);
Tailwind
colors: {
  custom: {
    50: '#dda5f2',
    500: '#cc7deb',
    950: '#000000',
  },
}
SCSS
$custom: #cc7deb;
$custom-light: #dda5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7deb",
  "rgb": {
    "r": 204,
    "g": 125,
    "b": 235
  },
  "hsl": {
    "h": 283.091,
    "s": 73.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.71465,
    "c": 0.17305,
    "h": 315.8
  },
  "luminance": 0.33503
}

Semantic roles & 50–950 ramp

primary
#CC7DEB
secondary
#DBF1D3
accent
#D51048
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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