#CC42CA#CC42CA

#CC42CA is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.4% C 0.228 H 328.5°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#CC42CA
RGBrgb(204, 66, 202)
HSLhsl(301, 58%, 53%)
HSVhsv(301, 68%, 80%)
CMYKcmyk(0%, 67.6%, 1%, 20%)
CIE-LABlab(52.95, 69.55, -43.19)
CIE-LCHlch(52.95, 81.87, 328.16°)
OKLaboklab(62.43% 0.1948 -0.1194)
OKLCHoklch(62.43% 0.228 328.5)
XYZxyz(37.5103, 21.0007, 57.9435)
Luminance0.2100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42CA #42CC44
analogous
#8942CC #CC42CA #CC4285
triadic
#CC42CA #CACC42 #42CACC
tetradic
#CC42CA #CC8942 #42CC44 #4285CC
square
#CC42CA #CC8942 #42CC44 #4285CC
split-complementary
#CC42CA #85CC42 #42CC89
monochromatic
#741F73 #A42CA3 #CC42CA #D972D8 #E6A2E5

Accessibility & contrast

On white

4.04
#CC42CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#CC42CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42CA
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42CA#FFFFFF#000000##000000
##CC42CA1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F73CE
Deuteranopia (green-blind)
#6685C6
Tritanopia (blue-blind)
#D35581
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #cc42ca;
/* rgb */ color: rgb(204, 66, 202);
/* oklch */ color: oklch(62.4% 0.228 328.5);
Tailwind
colors: {
  custom: {
    50: '#df82da',
    500: '#cc42ca',
    950: '#000000',
  },
}
SCSS
$custom: #cc42ca;
$custom-light: #df82da;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42ca",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 300.87,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.62427,
    "c": 0.22846,
    "h": 328.5
  },
  "luminance": 0.20998
}

Semantic roles & 50–950 ramp

primary
#CC42CA
secondary
#97D398
accent
#E14947
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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