#CB42AB#CB42AB

#CB42AB is a mid, highly saturated pink. Relative luminance 0.195; OKLCH L 60.7% C 0.205 H 338.5°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#CB42AB
RGBrgb(203, 66, 171)
HSLhsl(314, 57%, 53%)
HSVhsv(314, 67%, 80%)
CMYKcmyk(0%, 67.5%, 15.8%, 20.4%)
CIE-LABlab(51.31, 64.56, -27.79)
CIE-LCHlch(51.31, 70.29, 336.71°)
OKLaboklab(60.73% 0.1909 -0.0752)
OKLCHoklch(60.73% 0.205 338.5)
XYZxyz(33.9282, 19.5363, 40.5042)
Luminance0.1953 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB42AB #42CB62
analogous
#A742CB #CB42AB #CB4266
triadic
#CB42AB #ABCB42 #42ABCB
tetradic
#CB42AB #CBA742 #42CB62 #4266CB
square
#CB42AB #CBA742 #42CB62 #4266CB
split-complementary
#CB42AB #66CB42 #42CBA7
monochromatic
#732060 #A32D87 #CB42AB #D872C0 #E5A2D6

Accessibility & contrast

On white

4.28
#CB42AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#CB42AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB42AB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB42AB#FFFFFF#000000##000000
##CB42AB1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#486DAE
Deuteranopia (green-blind)
#7482A8
Tritanopia (blue-blind)
#D64871
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #cb42ab;
/* rgb */ color: rgb(203, 66, 171);
/* oklch */ color: oklch(60.7% 0.205 338.5);
Tailwind
colors: {
  custom: {
    50: '#de81c4',
    500: '#cb42ab',
    950: '#000000',
  },
}
SCSS
$custom: #cb42ab;
$custom-light: #de81c4;
$custom-dark: #000000;
JSON
{
  "hex": "#cb42ab",
  "rgb": {
    "r": 203,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 314.015,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60726,
    "c": 0.20521,
    "h": 338.5
  },
  "luminance": 0.19533
}

Semantic roles & 50–950 ramp

primary
#CB42AB
secondary
#97D2A5
accent
#E06B48
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160B12
muted
#847C81

Preview Lab

Preview with #CB42AB

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

Preview Lab → · Contrast checker → · Palette generator →

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