#CC2ED7#CC2ED7

#CC2ED7 is a mid, highly saturated purple. Relative luminance 0.197; OKLCH L 61.6% C 0.258 H 325.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#CC2ED7
RGBrgb(204, 46, 215)
HSLhsl(296, 68%, 51%)
HSVhsv(296, 79%, 84%)
CMYKcmyk(5.1%, 78.6%, 0%, 15.7%)
CIE-LABlab(51.50, 77.87, -52.95)
CIE-LCHlch(51.50, 94.17, 325.79°)
OKLaboklab(61.62% 0.2119 -0.1476)
OKLCHoklch(61.62% 0.258 325.1)
XYZxyz(38.1437, 19.7002, 66.0703)
Luminance0.1970 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2ED7 #39D72E
analogous
#772ED7 #CC2ED7 #D72E8D
triadic
#CC2ED7 #D7CC2E #2ED7CC
tetradic
#CC2ED7 #D7772E #39D72E #2E8DD7
square
#CC2ED7 #D7772E #39D72E #2E8DD7
split-complementary
#CC2ED7 #8DD72E #2ED777
monochromatic
#6E1674 #9F20A8 #CC2ED7 #D961E1 #E595EB

Accessibility & contrast

On white

4.25
#CC2ED7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#CC2ED7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC2ED7
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2ED7#FFFFFF#000000##000000
##CC2ED71.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FDB
Deuteranopia (green-blind)
#5581D3
Tritanopia (blue-blind)
#D14F83
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #cc2ed7;
/* rgb */ color: rgb(204, 46, 215);
/* oklch */ color: oklch(61.6% 0.258 325.1);
Tailwind
colors: {
  custom: {
    50: '#e07ae4',
    500: '#cc2ed7',
    950: '#000000',
  },
}
SCSS
$custom: #cc2ed7;
$custom-light: #e07ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2ed7",
  "rgb": {
    "r": 204,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 296.095,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.6162,
    "c": 0.25828,
    "h": 325.1
  },
  "luminance": 0.19698
}

Semantic roles & 50–950 ramp

primary
#CC2ED7
secondary
#90D68B
accent
#EB3D48
background
#FEF8FE
surface
#FDEFFC
border
#D5CAD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #CC2ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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