#CC7FEB#CC7FEB

#CC7FEB is a light, vivid purple. Relative luminance 0.340; OKLCH L 71.8% C 0.170 H 315.6°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#CC7FEB
RGBrgb(204, 127, 235)
HSLhsl(283, 73%, 71%)
HSVhsv(283, 46%, 92%)
CMYKcmyk(13.2%, 46%, 0%, 7.8%)
CIE-LABlab(64.97, 47.71, -42.83)
CIE-LCHlch(64.97, 64.11, 318.09°)
OKLaboklab(71.77% 0.1214 -0.1187)
OKLCHoklch(71.77% 0.17 315.6)
XYZxyz(47.4843, 34.0156, 82.6455)
Luminance0.3401 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7FEB #9EEB7F
analogous
#967FEB #CC7FEB #EB7FD4
triadic
#CC7FEB #EBCC7F #7FEBCC
tetradic
#CC7FEB #EB967F #9EEB7F #7FD4EB
square
#CC7FEB #EB967F #9EEB7F #7FD4EB
split-complementary
#CC7FEB #D4EB7F #7FEB96
monochromatic
#9D20CF #B74AE3 #CC7FEB #E1B4F3 #F4E5FB

Accessibility & contrast

On white

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

On black

7.80
#CC7FEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7FEB
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7FEB#FFFFFF#000000##000000
##CC7FEB1.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A99EF
Deuteranopia (green-blind)
#80A0E8
Tritanopia (blue-blind)
#CA8FAA
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7feb;
/* rgb */ color: rgb(204, 127, 235);
/* oklch */ color: oklch(71.8% 0.170 315.6);
Tailwind
colors: {
  custom: {
    50: '#dda6f2',
    500: '#cc7feb',
    950: '#000000',
  },
}
SCSS
$custom: #cc7feb;
$custom-light: #dda6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7feb",
  "rgb": {
    "r": 204,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 282.778,
    "s": 72.973,
    "l": 70.98
  },
  "oklch": {
    "l": 0.71768,
    "c": 0.16979,
    "h": 315.6
  },
  "luminance": 0.34014
}

Semantic roles & 50–950 ramp

primary
#CC7FEB
secondary
#DDF1D5
accent
#D51049
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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