#CC2FCC#CC2FCC

#CC2FCC is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 61.0% C 0.249 H 328.1°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#CC2FCC
RGBrgb(204, 47, 204)
HSLhsl(300, 63%, 49%)
HSVhsv(300, 77%, 80%)
CMYKcmyk(0%, 77%, 0%, 20%)
CIE-LABlab(50.96, 75.87, -47.50)
CIE-LCHlch(50.96, 89.51, 327.95°)
OKLaboklab(61.04% 0.2118 -0.1318)
OKLCHoklch(61.04% 0.249 328.1)
XYZxyz(36.8170, 19.2328, 58.8882)
Luminance0.1923 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2FCC #2FCC2F
analogous
#7E2FCC #CC2FCC #CC2F7E
triadic
#CC2FCC #CCCC2F #2FCCCC
tetradic
#CC2FCC #CC7E2F #2FCC2F #2F7ECC
square
#CC2FCC #CC7E2F #2FCC2F #2F7ECC
split-complementary
#CC2FCC #7ECC2F #2FCC7E
monochromatic
#691869 #9A249A #CC2FCC #DA5EDA #E590E5

Accessibility & contrast

On white

4.33
#CC2FCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#CC2FCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC2FCC
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2FCC#FFFFFF#000000##000000
##CC2FCC1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#5D80C8
Tritanopia (blue-blind)
#D34A7D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc2fcc;
/* rgb */ color: rgb(204, 47, 204);
/* oklch */ color: oklch(61.0% 0.249 328.1);
Tailwind
colors: {
  custom: {
    50: '#e07adc',
    500: '#cc2fcc',
    950: '#000000',
  },
}
SCSS
$custom: #cc2fcc;
$custom-light: #e07adc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2fcc",
  "rgb": {
    "r": 204,
    "g": 47,
    "b": 204
  },
  "hsl": {
    "h": 300,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.61036,
    "c": 0.24943,
    "h": 328.1
  },
  "luminance": 0.1923
}

Semantic roles & 50–950 ramp

primary
#CC2FCC
secondary
#87D087
accent
#E64242
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160A15
muted
#847C83

Preview Lab

Preview with #CC2FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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