#CC34C7#CC34C7

#CC34C7 is a mid, highly saturated purple. Relative luminance 0.194; OKLCH L 61.1% C 0.241 H 329.5°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#CC34C7
RGBrgb(204, 52, 199)
HSLhsl(302, 60%, 50%)
HSVhsv(302, 75%, 80%)
CMYKcmyk(0%, 74.5%, 2.5%, 20%)
CIE-LABlab(51.17, 73.68, -44.28)
CIE-LCHlch(51.17, 85.96, 329.00°)
OKLaboklab(61.1% 0.2079 -0.1224)
OKLCHoklch(61.1% 0.241 329.5)
XYZxyz(36.4384, 19.4197, 55.8510)
Luminance0.1942 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC34C7 #34CC39
analogous
#8534CC #CC34C7 #CC347B
triadic
#CC34C7 #C7CC34 #34C7CC
tetradic
#CC34C7 #CC8534 #34CC39 #347BCC
square
#CC34C7 #CC8534 #34CC39 #347BCC
split-complementary
#CC34C7 #7BCC34 #34CC85
monochromatic
#6B1B68 #9C2798 #CC34C7 #D865D4 #E596E2

Accessibility & contrast

On white

4.30
#CC34C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#CC34C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC34C7
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC34C7#FFFFFF#000000##000000
##CC34C71.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B6DCB
Deuteranopia (green-blind)
#6281C3
Tritanopia (blue-blind)
#D34A7C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cc34c7;
/* rgb */ color: rgb(204, 52, 199);
/* oklch */ color: oklch(61.1% 0.241 329.5);
Tailwind
colors: {
  custom: {
    50: '#e07cd8',
    500: '#cc34c7',
    950: '#000000',
  },
}
SCSS
$custom: #cc34c7;
$custom-light: #e07cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc34c7",
  "rgb": {
    "r": 204,
    "g": 52,
    "b": 199
  },
  "hsl": {
    "h": 301.974,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.61102,
    "c": 0.24123,
    "h": 329.5
  },
  "luminance": 0.19417
}

Semantic roles & 50–950 ramp

primary
#CC34C7
secondary
#8CD08E
accent
#E34A45
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC34C7

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

Preview Lab → · Contrast checker → · Palette generator →

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