#CC2FC7#CC2FC7

#CC2FC7 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.8% C 0.246 H 329.5°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#CC2FC7
RGBrgb(204, 47, 199)
HSLhsl(302, 63%, 49%)
HSVhsv(302, 77%, 80%)
CMYKcmyk(0%, 77%, 2.5%, 20%)
CIE-LABlab(50.68, 75.09, -45.06)
CIE-LCHlch(50.68, 87.57, 329.03°)
OKLaboklab(60.75% 0.2119 -0.1247)
OKLCHoklch(60.75% 0.246 329.5)
XYZxyz(36.2269, 18.9968, 55.7805)
Luminance0.1899 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2FC7 #2FCC34
analogous
#832FCC #CC2FC7 #CC2F79
triadic
#CC2FC7 #C7CC2F #2FC7CC
tetradic
#CC2FC7 #CC832F #2FCC34 #2F79CC
square
#CC2FC7 #CC832F #2FCC34 #2F79CC
split-complementary
#CC2FC7 #79CC2F #2FCC83
monochromatic
#691866 #9A2496 #CC2FC7 #DA5ED6 #E590E3

Accessibility & contrast

On white

4.38
#CC2FC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#CC2FC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC2FC7
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2FC7#FFFFFF#000000##000000
##CC2FC71.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F6BCB
Deuteranopia (green-blind)
#6080C3
Tritanopia (blue-blind)
#D3477A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc2fc7;
/* rgb */ color: rgb(204, 47, 199);
/* oklch */ color: oklch(60.8% 0.246 329.5);
Tailwind
colors: {
  custom: {
    50: '#e07ad8',
    500: '#cc2fc7',
    950: '#000000',
  },
}
SCSS
$custom: #cc2fc7;
$custom-light: #e07ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2fc7",
  "rgb": {
    "r": 204,
    "g": 47,
    "b": 199
  },
  "hsl": {
    "h": 301.911,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.60751,
    "c": 0.24584,
    "h": 329.5
  },
  "luminance": 0.18994
}

Semantic roles & 50–950 ramp

primary
#CC2FC7
secondary
#87D089
accent
#E64742
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160A14
muted
#847C83

Preview Lab

Preview with #CC2FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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