#CB42A1#CB42A1

#CB42A1 is a mid, vivid pink. Relative luminance 0.192; OKLCH L 60.3% C 0.199 H 342.3°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#CB42A1
RGBrgb(203, 66, 161)
HSLhsl(318, 57%, 53%)
HSVhsv(318, 67%, 80%)
CMYKcmyk(0%, 67.5%, 20.7%, 20.4%)
CIE-LABlab(50.88, 63.16, -22.56)
CIE-LCHlch(50.88, 67.07, 340.35°)
OKLaboklab(60.28% 0.1892 -0.0604)
OKLCHoklch(60.28% 0.199 342.3)
XYZxyz(33.0108, 19.1694, 35.6728)
Luminance0.1917 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42A1 #42CB6C
analogous
#B042CB #CB42A1 #CB425D
triadic
#CB42A1 #A1CB42 #42A1CB
tetradic
#CB42A1 #CBB042 #42CB6C #425DCB
square
#CB42A1 #CBB042 #42CB6C #425DCB
split-complementary
#CB42A1 #5DCB42 #42CBB0
monochromatic
#732059 #A32D7F #CB42A1 #D872B9 #E5A2D1

Accessibility & contrast

On white

4.34
#CB42A1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#CB42A1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42A1
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42A1#FFFFFF#000000##000000
##CB42A11.004.344.834.83
#FFFFFF4.341.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E6BA4
Deuteranopia (green-blind)
#77819E
Tritanopia (blue-blind)
#D7436C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cb42a1;
/* rgb */ color: rgb(203, 66, 161);
/* oklch */ color: oklch(60.3% 0.199 342.3);
Tailwind
colors: {
  custom: {
    50: '#df80bd',
    500: '#cb42a1',
    950: '#000000',
  },
}
SCSS
$custom: #cb42a1;
$custom-light: #df80bd;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42a1",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 161
  },
  "hsl": {
    "h": 318.394,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60278,
    "c": 0.19865,
    "h": 342.3
  },
  "luminance": 0.19166
}

Semantic roles & 50–950 ramp

primary
#CB42A1
secondary
#97D2A9
accent
#E07648
background
#FEF8FB
surface
#FCEFF6
border
#D5CAD0
text
#160B12
muted
#847C81

Preview Lab

Preview with #CB42A1

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

Preview Lab → · Contrast checker → · Palette generator →

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