#CC7FE2#CC7FE2

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

Color values

HEX#CC7FE2
RGBrgb(204, 127, 226)
HSLhsl(287, 63%, 69%)
HSVhsv(287, 44%, 89%)
CMYKcmyk(9.7%, 43.8%, 0%, 11.4%)
CIE-LABlab(64.57, 45.89, -38.47)
CIE-LCHlch(64.57, 59.89, 320.03°)
OKLaboklab(71.33% 0.1199 -0.1062)
OKLCHoklch(71.33% 0.16 318.5)
XYZxyz(46.2168, 33.5086, 75.9700)
Luminance0.3351 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7FE2 #95E27F
analogous
#9B7FE2 #CC7FE2 #E27FC6
triadic
#CC7FE2 #E2CC7F #7FE2CC
tetradic
#CC7FE2 #E29B7F #95E27F #7FC6E2
square
#CC7FE2 #E29B7F #95E27F #7FC6E2
split-complementary
#CC7FE2 #C6E27F #7FE29B
monochromatic
#9C2BBC #B84DD7 #CC7FE2 #E0B1ED #F4E3F9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC7FE2#FFFFFF#000000##000000
##CC7FE21.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)
#6F97E6
Deuteranopia (green-blind)
#849FDF
Tritanopia (blue-blind)
#CC8CA6
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7fe2;
/* rgb */ color: rgb(204, 127, 226);
/* oklch */ color: oklch(71.3% 0.160 318.5);
Tailwind
colors: {
  custom: {
    50: '#dda6eb',
    500: '#cc7fe2',
    950: '#000000',
  },
}
SCSS
$custom: #cc7fe2;
$custom-light: #dda6eb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7fe2",
  "rgb": {
    "r": 204,
    "g": 127,
    "b": 226
  },
  "hsl": {
    "h": 286.667,
    "s": 63.057,
    "l": 69.216
  },
  "oklch": {
    "l": 0.71334,
    "c": 0.16017,
    "h": 318.5
  },
  "luminance": 0.33507
}

Semantic roles & 50–950 ramp

primary
#CC7FE2
secondary
#D6EDD0
accent
#CB1B42
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CC7FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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