#CC42C5#CC42C5

#CC42C5 is a light, highly saturated purple. Relative luminance 0.208; OKLCH L 62.2% C 0.225 H 330.0°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#CC42C5
RGBrgb(204, 66, 197)
HSLhsl(303, 58%, 53%)
HSVhsv(303, 68%, 80%)
CMYKcmyk(0%, 67.6%, 3.4%, 20%)
CIE-LABlab(52.69, 68.75, -40.72)
CIE-LCHlch(52.69, 79.90, 329.36°)
OKLaboklab(62.16% 0.1946 -0.1122)
OKLCHoklch(62.16% 0.225 330)
XYZxyz(36.9279, 20.7678, 54.8761)
Luminance0.2077 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42C5 #42CC49
analogous
#8E42CC #CC42C5 #CC4280
triadic
#CC42C5 #C5CC42 #42C5CC
tetradic
#CC42C5 #CC8E42 #42CC49 #4280CC
square
#CC42C5 #CC8E42 #42CC49 #4280CC
split-complementary
#CC42C5 #80CC42 #42CC8E
monochromatic
#741F70 #A42C9E #CC42C5 #D972D4 #E6A2E3

Accessibility & contrast

On white

4.08
#CC42C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#CC42C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42C5
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42C5#FFFFFF#000000##000000
##CC42C51.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3472C9
Deuteranopia (green-blind)
#6984C1
Tritanopia (blue-blind)
#D3537E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cc42c5;
/* rgb */ color: rgb(204, 66, 197);
/* oklch */ color: oklch(62.2% 0.225 330.0);
Tailwind
colors: {
  custom: {
    50: '#df82d7',
    500: '#cc42c5',
    950: '#000000',
  },
}
SCSS
$custom: #cc42c5;
$custom-light: #df82d7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42c5",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 303.043,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.6216,
    "c": 0.22463,
    "h": 330
  },
  "luminance": 0.20765
}

Semantic roles & 50–950 ramp

primary
#CC42C5
secondary
#97D39A
accent
#E14F47
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B14
muted
#847C83

Preview Lab

Preview with #CC42C5

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

Preview Lab → · Contrast checker → · Palette generator →

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