#CC2EFF#CC2EFF

#CC2EFF is a light, highly saturated purple. Relative luminance 0.220; OKLCH L 64.2% C 0.288 H 315.7°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#CC2EFF
RGBrgb(204, 46, 255)
HSLhsl(285, 100%, 59%)
HSVhsv(285, 82%, 100%)
CMYKcmyk(20%, 82%, 0%, 0%)
CIE-LABlab(54.04, 84.67, -71.37)
CIE-LCHlch(54.04, 110.74, 319.87°)
OKLaboklab(64.22% 0.2063 -0.2016)
OKLCHoklch(64.22% 0.288 315.7)
XYZxyz(43.9259, 22.0131, 96.5235)
Luminance0.2201 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2EFF #61FF2E
analogous
#642EFF #CC2EFF #FF2EC9
triadic
#CC2EFF #FFCC2E #2EFFCC
tetradic
#CC2EFF #FF642E #61FF2E #2EC9FF
square
#CC2EFF #FF642E #61FF2E #2EC9FF
split-complementary
#CC2EFF #C9FF2E #2EFF64
monochromatic
#8700B3 #B500F0 #CC2EFF #DB6BFF #EAA8FF

Accessibility & contrast

On white

3.89
#CC2EFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#CC2EFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC2EFF
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2EFF#FFFFFF#000000##000000
##CC2EFF1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079FF
Deuteranopia (green-blind)
#2485FB
Tritanopia (blue-blind)
#C8639B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #cc2eff;
/* rgb */ color: rgb(204, 46, 255);
/* oklch */ color: oklch(64.2% 0.288 315.7);
Tailwind
colors: {
  custom: {
    50: '#e17cff',
    500: '#cc2eff',
    950: '#000000',
  },
}
SCSS
$custom: #cc2eff;
$custom-light: #e17cff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2eff",
  "rgb": {
    "r": 204,
    "g": 46,
    "b": 255
  },
  "hsl": {
    "h": 285.359,
    "s": 100,
    "l": 59.02
  },
  "oklch": {
    "l": 0.64216,
    "c": 0.28845,
    "h": 315.7
  },
  "luminance": 0.22011
}

Semantic roles & 50–950 ramp

primary
#CC2EFF
secondary
#AFED9B
accent
#FF295D
background
#FEF8FF
surface
#FDEFFF
border
#D5CAD7
text
#160B18
muted
#847C86

Preview Lab

Preview with #CC2EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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