#CC7FEA#CC7FEA

#CC7FEA is a light, vivid purple. Relative luminance 0.340; OKLCH L 71.7% C 0.169 H 315.9°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#CC7FEA
RGBrgb(204, 127, 234)
HSLhsl(283, 72%, 71%)
HSVhsv(283, 46%, 92%)
CMYKcmyk(12.8%, 45.7%, 0%, 8.2%)
CIE-LABlab(64.93, 47.51, -42.35)
CIE-LCHlch(64.93, 63.64, 318.29°)
OKLaboklab(71.72% 0.1212 -0.1174)
OKLCHoklch(71.72% 0.169 315.9)
XYZxyz(47.3403, 33.9580, 81.8867)
Luminance0.3396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7FEA #9DEA7F
analogous
#967FEA #CC7FEA #EA7FD2
triadic
#CC7FEA #EACC7F #7FEACC
tetradic
#CC7FEA #EA967F #9DEA7F #7FD2EA
square
#CC7FEA #EA967F #9DEA7F #7FD2EA
split-complementary
#CC7FEA #D2EA7F #7FEA96
monochromatic
#9D22CD #B74AE1 #CC7FEA #E1B4F3 #F5E5FB

Accessibility & contrast

On white

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

On black

7.79
#CC7FEA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7FEA
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7FEA#FFFFFF#000000##000000
##CC7FEA1.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B99EE
Deuteranopia (green-blind)
#80A0E7
Tritanopia (blue-blind)
#CB8EAA
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7fea;
/* rgb */ color: rgb(204, 127, 234);
/* oklch */ color: oklch(71.7% 0.169 315.9);
Tailwind
colors: {
  custom: {
    50: '#dda6f1',
    500: '#cc7fea',
    950: '#000000',
  },
}
SCSS
$custom: #cc7fea;
$custom-light: #dda6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7fea",
  "rgb": {
    "r": 204,
    "g": 127,
    "b": 234
  },
  "hsl": {
    "h": 283.178,
    "s": 71.812,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71719,
    "c": 0.16871,
    "h": 315.9
  },
  "luminance": 0.33957
}

Semantic roles & 50–950 ramp

primary
#CC7FEA
secondary
#DCF1D4
accent
#D41248
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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