#B42AA5#B42AA5

#B42AA5 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.9% C 0.215 H 333.1°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#B42AA5
RGBrgb(180, 42, 165)
HSLhsl(307, 62%, 44%)
HSVhsv(307, 77%, 71%)
CMYKcmyk(0%, 76.7%, 8.3%, 29.4%)
CIE-LABlab(44.34, 66.30, -35.42)
CIE-LCHlch(44.34, 75.16, 331.89°)
OKLaboklab(54.87% 0.1915 -0.0973)
OKLCHoklch(54.87% 0.215 333.1)
XYZxyz(26.4421, 14.0781, 36.9147)
Luminance0.1408 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AA5 #2AB439
analogous
#7E2AB4 #B42AA5 #B42A60
triadic
#B42AA5 #A5B42A #2AA5B4
tetradic
#B42AA5 #B47E2A #2AB439 #2A60B4
square
#B42AA5 #B47E2A #2AB439 #2A60B4
split-complementary
#B42AA5 #60B42A #2AB47E
monochromatic
#51134A #821E78 #B42AA5 #D447C5 #E079D4

Accessibility & contrast

On white

5.50
#B42AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#B42AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AA5
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AA5#FFFFFF#000000##FFFFFF
##B42AA51.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235CA8
Deuteranopia (green-blind)
#5A70A2
Tritanopia (blue-blind)
#BC3966
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42aa5;
/* rgb */ color: rgb(180, 42, 165);
/* oklch */ color: oklch(54.9% 0.215 333.1);
Tailwind
colors: {
  custom: {
    50: '#ce73c0',
    500: '#b42aa5',
    950: '#000000',
  },
}
SCSS
$custom: #b42aa5;
$custom-light: #ce73c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b42aa5",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 306.522,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54871,
    "c": 0.21475,
    "h": 333.1
  },
  "luminance": 0.14076
}

Semantic roles & 50–950 ramp

primary
#B42AA5
secondary
#72C87B
accent
#E55443
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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