#CC34C2#CC34C2

#CC34C2 is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.8% C 0.238 H 331.0°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#CC34C2
RGBrgb(204, 52, 194)
HSLhsl(304, 60%, 50%)
HSVhsv(304, 75%, 80%)
CMYKcmyk(0%, 74.5%, 4.9%, 20%)
CIE-LABlab(50.91, 72.91, -41.81)
CIE-LCHlch(50.91, 84.05, 330.17°)
OKLaboklab(60.83% 0.2078 -0.1153)
OKLCHoklch(60.83% 0.238 331)
XYZxyz(35.8674, 19.1913, 52.8437)
Luminance0.1919 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC34C2 #34CC3E
analogous
#8A34CC #CC34C2 #CC3476
triadic
#CC34C2 #C2CC34 #34C2CC
tetradic
#CC34C2 #CC8A34 #34CC3E #3476CC
square
#CC34C2 #CC8A34 #34CC3E #3476CC
split-complementary
#CC34C2 #76CC34 #34CC8A
monochromatic
#6B1B66 #9C2794 #CC34C2 #D865D1 #E596DF

Accessibility & contrast

On white

4.34
#CC34C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#CC34C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC34C2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC34C2#FFFFFF#000000##000000
##CC34C21.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#246CC6
Deuteranopia (green-blind)
#6481BE
Tritanopia (blue-blind)
#D44879
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc34c2;
/* rgb */ color: rgb(204, 52, 194);
/* oklch */ color: oklch(60.8% 0.238 331.0);
Tailwind
colors: {
  custom: {
    50: '#e07bd5',
    500: '#cc34c2',
    950: '#000000',
  },
}
SCSS
$custom: #cc34c2;
$custom-light: #e07bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc34c2",
  "rgb": {
    "r": 204,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 303.947,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60827,
    "c": 0.23763,
    "h": 331
  },
  "luminance": 0.19188
}

Semantic roles & 50–950 ramp

primary
#CC34C2
secondary
#8CD090
accent
#E34F45
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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