#B42AA9#B42AA9

#B42AA9 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.1% C 0.218 H 331.7°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B42AA9
RGBrgb(180, 42, 169)
HSLhsl(305, 62%, 44%)
HSVhsv(305, 77%, 71%)
CMYKcmyk(0%, 76.7%, 6.1%, 29.4%)
CIE-LABlab(44.56, 66.90, -37.46)
CIE-LCHlch(44.56, 76.68, 330.75°)
OKLaboklab(55.09% 0.1916 -0.1032)
OKLCHoklch(55.09% 0.218 331.7)
XYZxyz(26.8118, 14.2260, 38.8622)
Luminance0.1422 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AA9 #2AB435
analogous
#7A2AB4 #B42AA9 #B42A64
triadic
#B42AA9 #A9B42A #2AA9B4
tetradic
#B42AA9 #B47A2A #2AB435 #2A64B4
square
#B42AA9 #B47A2A #2AB435 #2A64B4
split-complementary
#B42AA9 #64B42A #2AB47A
monochromatic
#51134C #821E7A #B42AA9 #D447C9 #E079D7

Accessibility & contrast

On white

5.46
#B42AA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#B42AA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AA9
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AA9#FFFFFF#000000##FFFFFF
##B42AA91.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5DAC
Deuteranopia (green-blind)
#5870A6
Tritanopia (blue-blind)
#BC3B68
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42aa9;
/* rgb */ color: rgb(180, 42, 169);
/* oklch */ color: oklch(55.1% 0.218 331.7);
Tailwind
colors: {
  custom: {
    50: '#ce73c3',
    500: '#b42aa9',
    950: '#000000',
  },
}
SCSS
$custom: #b42aa9;
$custom-light: #ce73c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b42aa9",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 304.783,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.5509,
    "c": 0.21761,
    "h": 331.7
  },
  "luminance": 0.14224
}

Semantic roles & 50–950 ramp

primary
#B42AA9
secondary
#72C879
accent
#E55043
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B42AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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