#B42AAB#B42AAB

#B42AAB is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.219 H 331.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B42AAB
RGBrgb(180, 42, 171)
HSLhsl(304, 62%, 44%)
HSVhsv(304, 77%, 71%)
CMYKcmyk(0%, 76.7%, 5%, 29.4%)
CIE-LABlab(44.66, 67.21, -38.48)
CIE-LCHlch(44.66, 77.45, 330.21°)
OKLaboklab(55.2% 0.1916 -0.1061)
OKLCHoklch(55.2% 0.219 331)
XYZxyz(27.0010, 14.3017, 39.8586)
Luminance0.1430 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AAB #2AB433
analogous
#782AB4 #B42AAB #B42A66
triadic
#B42AAB #ABB42A #2AABB4
tetradic
#B42AAB #B4782A #2AB433 #2A66B4
square
#B42AAB #B4782A #2AB433 #2A66B4
split-complementary
#B42AAB #66B42A #2AB478
monochromatic
#51134D #821E7C #B42AAB #D447CB #E079D9

Accessibility & contrast

On white

5.44
#B42AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B42AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AAB
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AAB#FFFFFF#000000##FFFFFF
##B42AAB1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5EAE
Deuteranopia (green-blind)
#5770A8
Tritanopia (blue-blind)
#BB3C69
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b42aab;
/* rgb */ color: rgb(180, 42, 171);
/* oklch */ color: oklch(55.2% 0.219 331.0);
Tailwind
colors: {
  custom: {
    50: '#ce73c4',
    500: '#b42aab',
    950: '#000000',
  },
}
SCSS
$custom: #b42aab;
$custom-light: #ce73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b42aab",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 303.913,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55202,
    "c": 0.21905,
    "h": 331
  },
  "luminance": 0.143
}

Semantic roles & 50–950 ramp

primary
#B42AAB
secondary
#72C878
accent
#E54D43
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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