#CC34C5#CC34C5

#CC34C5 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 61.0% C 0.240 H 330.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#CC34C5
RGBrgb(204, 52, 197)
HSLhsl(303, 60%, 50%)
HSVhsv(303, 75%, 80%)
CMYKcmyk(0%, 74.5%, 3.4%, 20%)
CIE-LABlab(51.07, 73.37, -43.29)
CIE-LCHlch(51.07, 85.19, 329.46°)
OKLaboklab(60.99% 0.2078 -0.1196)
OKLCHoklch(60.99% 0.24 330.1)
XYZxyz(36.2077, 19.3274, 54.6361)
Luminance0.1933 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC34C5 #34CC3B
analogous
#8734CC #CC34C5 #CC3479
triadic
#CC34C5 #C5CC34 #34C5CC
tetradic
#CC34C5 #CC8734 #34CC3B #3479CC
square
#CC34C5 #CC8734 #34CC3B #3479CC
split-complementary
#CC34C5 #79CC34 #34CC87
monochromatic
#6B1B67 #9C2796 #CC34C5 #D865D3 #E596E1

Accessibility & contrast

On white

4.32
#CC34C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#CC34C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC34C5
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC34C5#FFFFFF#000000##000000
##CC34C51.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F6DC9
Deuteranopia (green-blind)
#6381C1
Tritanopia (blue-blind)
#D4497A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc34c5;
/* rgb */ color: rgb(204, 52, 197);
/* oklch */ color: oklch(61.0% 0.240 330.1);
Tailwind
colors: {
  custom: {
    50: '#e07cd7',
    500: '#cc34c5',
    950: '#000000',
  },
}
SCSS
$custom: #cc34c5;
$custom-light: #e07cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc34c5",
  "rgb": {
    "r": 204,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 302.763,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.60991,
    "c": 0.23978,
    "h": 330.1
  },
  "luminance": 0.19325
}

Semantic roles & 50–950 ramp

primary
#CC34C5
secondary
#8CD08F
accent
#E34C45
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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