#B42AA1#B42AA1

#B42AA1 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.7% C 0.212 H 334.5°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#B42AA1
RGBrgb(180, 42, 161)
HSLhsl(308, 62%, 44%)
HSVhsv(308, 77%, 71%)
CMYKcmyk(0%, 76.7%, 10.6%, 29.4%)
CIE-LABlab(44.14, 65.70, -33.35)
CIE-LCHlch(44.14, 73.68, 333.09°)
OKLaboklab(54.66% 0.1913 -0.0913)
OKLCHoklch(54.66% 0.212 334.5)
XYZxyz(26.0837, 13.9348, 35.0272)
Luminance0.1393 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AA1 #2AB43D
analogous
#822AB4 #B42AA1 #B42A5C
triadic
#B42AA1 #A1B42A #2AA1B4
tetradic
#B42AA1 #B4822A #2AB43D #2A5CB4
square
#B42AA1 #B4822A #2AB43D #2A5CB4
split-complementary
#B42AA1 #5CB42A #2AB482
monochromatic
#511348 #821E75 #B42AA1 #D447C1 #E079D1

Accessibility & contrast

On white

5.55
#B42AA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#B42AA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AA1
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AA1#FFFFFF#000000##FFFFFF
##B42AA11.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285CA4
Deuteranopia (green-blind)
#5C6F9E
Tritanopia (blue-blind)
#BD3764
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b42aa1;
/* rgb */ color: rgb(180, 42, 161);
/* oklch */ color: oklch(54.7% 0.212 334.5);
Tailwind
colors: {
  custom: {
    50: '#ce73bd',
    500: '#b42aa1',
    950: '#000000',
  },
}
SCSS
$custom: #b42aa1;
$custom-light: #ce73bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b42aa1",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 308.261,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54657,
    "c": 0.21195,
    "h": 334.5
  },
  "luminance": 0.13932
}

Semantic roles & 50–950 ramp

primary
#B42AA1
secondary
#72C87E
accent
#E55943
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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