#CC42BF#CC42BF

#CC42BF is a mid, highly saturated purple. Relative luminance 0.205; OKLCH L 61.8% C 0.220 H 331.9°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#CC42BF
RGBrgb(204, 66, 191)
HSLhsl(306, 58%, 53%)
HSVhsv(306, 68%, 80%)
CMYKcmyk(0%, 67.6%, 6.4%, 20%)
CIE-LABlab(52.40, 67.80, -37.73)
CIE-LCHlch(52.40, 77.59, 330.91°)
OKLaboklab(61.85% 0.1942 -0.1036)
OKLCHoklch(61.85% 0.22 331.9)
XYZxyz(36.2540, 20.4982, 51.3272)
Luminance0.2049 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC42BF #42CC4F
analogous
#9442CC #CC42BF #CC427A
triadic
#CC42BF #BFCC42 #42BFCC
tetradic
#CC42BF #CC9442 #42CC4F #427ACC
square
#CC42BF #CC9442 #42CC4F #427ACC
split-complementary
#CC42BF #7ACC42 #42CC94
monochromatic
#741F6C #A42C99 #CC42BF #D972CF #E6A2E0

Accessibility & contrast

On white

4.12
#CC42BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#CC42BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC42BF
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC42BF#FFFFFF#000000##000000
##CC42BF1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A71C3
Deuteranopia (green-blind)
#6C84BC
Tritanopia (blue-blind)
#D4507B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cc42bf;
/* rgb */ color: rgb(204, 66, 191);
/* oklch */ color: oklch(61.8% 0.220 331.9);
Tailwind
colors: {
  custom: {
    50: '#df81d3',
    500: '#cc42bf',
    950: '#000000',
  },
}
SCSS
$custom: #cc42bf;
$custom-light: #df81d3;
$custom-dark: #000000;
JSON
{
  "hex": "#cc42bf",
  "rgb": {
    "r": 204,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 305.652,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.61847,
    "c": 0.22011,
    "h": 331.9
  },
  "luminance": 0.20495
}

Semantic roles & 50–950 ramp

primary
#CC42BF
secondary
#97D39D
accent
#E15647
background
#FEF8FC
surface
#FCF0F9
border
#D5CBD2
text
#160B14
muted
#847C82

Preview Lab

Preview with #CC42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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