#CC34C8#CC34C8

#CC34C8 is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.2% C 0.242 H 329.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#CC34C8
RGBrgb(204, 52, 200)
HSLhsl(302, 60%, 50%)
HSVhsv(302, 75%, 80%)
CMYKcmyk(0%, 74.5%, 2%, 20%)
CIE-LABlab(51.23, 73.84, -44.77)
CIE-LCHlch(51.23, 86.35, 328.77°)
OKLaboklab(61.16% 0.2079 -0.1239)
OKLCHoklch(61.16% 0.242 329.2)
XYZxyz(36.5549, 19.4663, 56.4644)
Luminance0.1946 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC34C8 #34CC38
analogous
#8434CC #CC34C8 #CC347C
triadic
#CC34C8 #C8CC34 #34C8CC
tetradic
#CC34C8 #CC8434 #34CC38 #347CCC
square
#CC34C8 #CC8434 #34CC38 #347CCC
split-complementary
#CC34C8 #7CCC34 #34CC84
monochromatic
#6B1B69 #9C2799 #CC34C8 #D865D5 #E596E3

Accessibility & contrast

On white

4.29
#CC34C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#CC34C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC34C8
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC34C8#FFFFFF#000000##000000
##CC34C81.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#196DCC
Deuteranopia (green-blind)
#6181C4
Tritanopia (blue-blind)
#D34B7C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc34c8;
/* rgb */ color: rgb(204, 52, 200);
/* oklch */ color: oklch(61.2% 0.242 329.2);
Tailwind
colors: {
  custom: {
    50: '#e07cd9',
    500: '#cc34c8',
    950: '#000000',
  },
}
SCSS
$custom: #cc34c8;
$custom-light: #e07cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc34c8",
  "rgb": {
    "r": 204,
    "g": 52,
    "b": 200
  },
  "hsl": {
    "h": 301.579,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.61158,
    "c": 0.24196,
    "h": 329.2
  },
  "luminance": 0.19463
}

Semantic roles & 50–950 ramp

primary
#CC34C8
secondary
#8CD08E
accent
#E34945
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC34C8

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

Preview Lab → · Contrast checker → · Palette generator →

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