#CC42C8#CC42C8

#CC42C8 is a light, highly saturated purple. Relative luminance 0.209; OKLCH L 62.3% C 0.227 H 329.1°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#CC42C8
RGBrgb(204, 66, 200)
HSLhsl(302, 58%, 53%)
HSVhsv(302, 68%, 80%)
CMYKcmyk(0%, 67.6%, 2%, 20%)
CIE-LABlab(52.85, 69.23, -42.21)
CIE-LCHlch(52.85, 81.08, 328.63°)
OKLaboklab(62.32% 0.1947 -0.1165)
OKLCHoklch(62.32% 0.227 329.1)
XYZxyz(37.2750, 20.9066, 56.7045)
Luminance0.2090 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42C8 #42CC46
analogous
#8B42CC #CC42C8 #CC4283
triadic
#CC42C8 #C8CC42 #42C8CC
tetradic
#CC42C8 #CC8B42 #42CC46 #4283CC
square
#CC42C8 #CC8B42 #42CC46 #4283CC
split-complementary
#CC42C8 #83CC42 #42CC8B
monochromatic
#741F72 #A42CA1 #CC42C8 #D972D6 #E6A2E4

Accessibility & contrast

On white

4.05
#CC42C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#CC42C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42C8
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42C8#FFFFFF#000000##000000
##CC42C81.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3172CC
Deuteranopia (green-blind)
#6785C4
Tritanopia (blue-blind)
#D35480
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cc42c8;
/* rgb */ color: rgb(204, 66, 200);
/* oklch */ color: oklch(62.3% 0.227 329.1);
Tailwind
colors: {
  custom: {
    50: '#df82d9',
    500: '#cc42c8',
    950: '#000000',
  },
}
SCSS
$custom: #cc42c8;
$custom-light: #df82d9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42c8",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 301.739,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.62319,
    "c": 0.22693,
    "h": 329.1
  },
  "luminance": 0.20904
}

Semantic roles & 50–950 ramp

primary
#CC42C8
secondary
#97D399
accent
#E14C47
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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