#CB42A5#CB42A5

#CB42A5 is a mid, highly saturated pink. Relative luminance 0.193; OKLCH L 60.5% C 0.201 H 340.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#CB42A5
RGBrgb(203, 66, 165)
HSLhsl(317, 57%, 53%)
HSVhsv(317, 67%, 80%)
CMYKcmyk(0%, 67.5%, 18.7%, 20.4%)
CIE-LABlab(51.05, 63.71, -24.66)
CIE-LCHlch(51.05, 68.32, 338.84°)
OKLaboklab(60.45% 0.19 -0.0664)
OKLCHoklch(60.45% 0.201 340.7)
XYZxyz(33.3692, 19.3127, 37.5603)
Luminance0.1931 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42A5 #42CB68
analogous
#AC42CB #CB42A5 #CB4261
triadic
#CB42A5 #A5CB42 #42A5CB
tetradic
#CB42A5 #CBAC42 #42CB68 #4261CB
square
#CB42A5 #CBAC42 #42CB68 #4261CB
split-complementary
#CB42A5 #61CB42 #42CBAC
monochromatic
#73205C #A32D82 #CB42A5 #D872BC #E5A2D3

Accessibility & contrast

On white

4.32
#CB42A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#CB42A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42A5
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42A5#FFFFFF#000000##000000
##CB42A51.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B6CA8
Deuteranopia (green-blind)
#7682A2
Tritanopia (blue-blind)
#D7456E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb42a5;
/* rgb */ color: rgb(203, 66, 165);
/* oklch */ color: oklch(60.5% 0.201 340.7);
Tailwind
colors: {
  custom: {
    50: '#df81c0',
    500: '#cb42a5',
    950: '#000000',
  },
}
SCSS
$custom: #cb42a5;
$custom-light: #df81c0;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42a5",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 316.642,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60454,
    "c": 0.20122,
    "h": 340.7
  },
  "luminance": 0.1931
}

Semantic roles & 50–950 ramp

primary
#CB42A5
secondary
#97D2A7
accent
#E07248
background
#FEF8FB
surface
#FCEFF7
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CB42A5

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

Preview Lab → · Contrast checker → · Palette generator →

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