#CC2FC2#CC2FC2

#CC2FC2 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.5% C 0.242 H 331.0°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#CC2FC2
RGBrgb(204, 47, 194)
HSLhsl(304, 63%, 49%)
HSVhsv(304, 77%, 80%)
CMYKcmyk(0%, 77%, 4.9%, 20%)
CIE-LABlab(50.42, 74.33, -42.59)
CIE-LCHlch(50.42, 85.67, 330.19°)
OKLaboklab(60.47% 0.2119 -0.1175)
OKLCHoklch(60.47% 0.242 331)
XYZxyz(35.6559, 18.7684, 52.7732)
Luminance0.1877 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2FC2 #2FCC39
analogous
#882FCC #CC2FC2 #CC2F73
triadic
#CC2FC2 #C2CC2F #2FC2CC
tetradic
#CC2FC2 #CC882F #2FCC39 #2F73CC
square
#CC2FC2 #CC882F #2FCC39 #2F73CC
split-complementary
#CC2FC2 #73CC2F #2FCC88
monochromatic
#691863 #9A2493 #CC2FC2 #DA5ED2 #E590E0

Accessibility & contrast

On white

4.42
#CC2FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#CC2FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC2FC2
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2FC2#FFFFFF#000000##000000
##CC2FC21.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C6AC6
Deuteranopia (green-blind)
#627FBE
Tritanopia (blue-blind)
#D44578
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cc2fc2;
/* rgb */ color: rgb(204, 47, 194);
/* oklch */ color: oklch(60.5% 0.242 331.0);
Tailwind
colors: {
  custom: {
    50: '#e07ad5',
    500: '#cc2fc2',
    950: '#000000',
  },
}
SCSS
$custom: #cc2fc2;
$custom-light: #e07ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2fc2",
  "rgb": {
    "r": 204,
    "g": 47,
    "b": 194
  },
  "hsl": {
    "h": 303.822,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.60473,
    "c": 0.24231,
    "h": 331
  },
  "luminance": 0.18765
}

Semantic roles & 50–950 ramp

primary
#CC2FC2
secondary
#87D08B
accent
#E64D42
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160A14
muted
#847C83

Preview Lab

Preview with #CC2FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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