#CC42CF#CC42CF

#CC42CF is a light, highly saturated purple. Relative luminance 0.212; OKLCH L 62.7% C 0.232 H 327.0°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#CC42CF
RGBrgb(204, 66, 207)
HSLhsl(299, 59%, 54%)
HSVhsv(299, 68%, 81%)
CMYKcmyk(1.4%, 68.1%, 0%, 18.8%)
CIE-LABlab(53.21, 70.37, -45.64)
CIE-LCHlch(53.21, 83.88, 327.03°)
OKLaboklab(62.7% 0.1949 -0.1265)
OKLCHoklch(62.7% 0.232 327)
XYZxyz(38.1119, 21.2414, 61.1120)
Luminance0.2124 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42CF #45CF42
analogous
#8542CF #CC42CF #CF428B
triadic
#CC42CF #CFCC42 #42CFCC
tetradic
#CC42CF #CF8542 #45CF42 #428BCF
square
#CC42CF #CF8542 #45CF42 #428BCF
split-complementary
#CC42CF #8BCF42 #42CF85
monochromatic
#761F78 #A62BA9 #CC42CF #D973DB #E6A4E8

Accessibility & contrast

On white

4.00
#CC42CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#CC42CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42CF
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42CF#FFFFFF#000000##000000
##CC42CF1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2874D3
Deuteranopia (green-blind)
#6485CB
Tritanopia (blue-blind)
#D25784
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #cc42cf;
/* rgb */ color: rgb(204, 66, 207);
/* oklch */ color: oklch(62.7% 0.232 327.0);
Tailwind
colors: {
  custom: {
    50: '#df82de',
    500: '#cc42cf',
    950: '#000000',
  },
}
SCSS
$custom: #cc42cf;
$custom-light: #df82de;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42cf",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 298.723,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.627,
    "c": 0.23236,
    "h": 327
  },
  "luminance": 0.21239
}

Semantic roles & 50–950 ramp

primary
#CC42CF
secondary
#99D598
accent
#E34548
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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