#B42AB2#B42AB2

#B42AB2 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.6% C 0.224 H 328.7°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#B42AB2
RGBrgb(180, 42, 178)
HSLhsl(301, 62%, 44%)
HSVhsv(301, 77%, 71%)
CMYKcmyk(0%, 76.7%, 1.1%, 29.4%)
CIE-LABlab(45.05, 68.31, -42.01)
CIE-LCHlch(45.05, 80.19, 328.41°)
OKLaboklab(55.6% 0.1916 -0.1164)
OKLCHoklch(55.6% 0.224 328.7)
XYZxyz(27.6860, 14.5757, 43.4660)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AB2 #2AB42C
analogous
#712AB4 #B42AB2 #B42A6D
triadic
#B42AB2 #B2B42A #2AB2B4
tetradic
#B42AB2 #B4712A #2AB42C #2A6DB4
square
#B42AB2 #B4712A #2AB42C #2A6DB4
split-complementary
#B42AB2 #6DB42A #2AB471
monochromatic
#511350 #821E81 #B42AB2 #D447D2 #E079DE

Accessibility & contrast

On white

5.36
#B42AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#B42AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AB2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AB2#FFFFFF#000000##FFFFFF
##B42AB21.005.363.915.36
#FFFFFF5.361.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095FB6
Deuteranopia (green-blind)
#5371AF
Tritanopia (blue-blind)
#BA406D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b42ab2;
/* rgb */ color: rgb(180, 42, 178);
/* oklch */ color: oklch(55.6% 0.224 328.7);
Tailwind
colors: {
  custom: {
    50: '#ce74c9',
    500: '#b42ab2',
    950: '#000000',
  },
}
SCSS
$custom: #b42ab2;
$custom-light: #ce74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b42ab2",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 300.87,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55601,
    "c": 0.22417,
    "h": 328.7
  },
  "luminance": 0.14574
}

Semantic roles & 50–950 ramp

primary
#B42AB2
secondary
#72C873
accent
#E54543
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B42AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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