#CC42B9#CC42B9

#CC42B9 is a mid, highly saturated purple. Relative luminance 0.202; OKLCH L 61.5% C 0.216 H 333.9°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#CC42B9
RGBrgb(204, 66, 185)
HSLhsl(308, 58%, 53%)
HSVhsv(308, 68%, 80%)
CMYKcmyk(0%, 67.6%, 9.3%, 20%)
CIE-LABlab(52.11, 66.88, -34.71)
CIE-LCHlch(52.11, 75.35, 332.57°)
OKLaboklab(61.54% 0.1937 -0.0949)
OKLCHoklch(61.54% 0.216 333.9)
XYZxyz(35.6073, 20.2395, 47.9208)
Luminance0.2024 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42B9 #42CC55
analogous
#9A42CC #CC42B9 #CC4274
triadic
#CC42B9 #B9CC42 #42B9CC
tetradic
#CC42B9 #CC9A42 #42CC55 #4274CC
square
#CC42B9 #CC9A42 #42CC55 #4274CC
split-complementary
#CC42B9 #74CC42 #42CC9A
monochromatic
#741F69 #A42C94 #CC42B9 #D972CB #E6A2DD

Accessibility & contrast

On white

4.16
#CC42B9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#CC42B9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42B9
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42B9#FFFFFF#000000##000000
##CC42B91.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F6FBC
Deuteranopia (green-blind)
#6F83B6
Tritanopia (blue-blind)
#D54D78
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #cc42b9;
/* rgb */ color: rgb(204, 66, 185);
/* oklch */ color: oklch(61.5% 0.216 333.9);
Tailwind
colors: {
  custom: {
    50: '#df81ce',
    500: '#cc42b9',
    950: '#000000',
  },
}
SCSS
$custom: #cc42b9;
$custom-light: #df81ce;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42b9",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 185
  },
  "hsl": {
    "h": 308.261,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.61544,
    "c": 0.21568,
    "h": 333.9
  },
  "luminance": 0.20237
}

Semantic roles & 50–950 ramp

primary
#CC42B9
secondary
#97D39F
accent
#E15C47
background
#FEF8FC
surface
#FCEFF9
border
#D5CAD2
text
#160B13
muted
#847C82

Preview Lab

Preview with #CC42B9

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

Preview Lab → · Contrast checker → · Palette generator →

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