#B42AA4#B42AA4

#B42AA4 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.214 H 333.4°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B42AA4
RGBrgb(180, 42, 164)
HSLhsl(307, 62%, 44%)
HSVhsv(307, 77%, 71%)
CMYKcmyk(0%, 76.7%, 8.9%, 29.4%)
CIE-LABlab(44.29, 66.15, -34.90)
CIE-LCHlch(44.29, 74.79, 332.18°)
OKLaboklab(54.82% 0.1914 -0.0958)
OKLCHoklch(54.82% 0.214 333.4)
XYZxyz(26.3514, 14.0419, 36.4373)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AA4 #2AB43A
analogous
#7F2AB4 #B42AA4 #B42A5F
triadic
#B42AA4 #A4B42A #2AA4B4
tetradic
#B42AA4 #B47F2A #2AB43A #2A5FB4
square
#B42AA4 #B47F2A #2AB43A #2A5FB4
split-complementary
#B42AA4 #5FB42A #2AB47F
monochromatic
#51134A #821E77 #B42AA4 #D447C4 #E079D4

Accessibility & contrast

On white

5.51
#B42AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#B42AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42AA4
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AA4#FFFFFF#000000##FFFFFF
##B42AA41.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245CA7
Deuteranopia (green-blind)
#5A70A1
Tritanopia (blue-blind)
#BC3965
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b42aa4;
/* rgb */ color: rgb(180, 42, 164);
/* oklch */ color: oklch(54.8% 0.214 333.4);
Tailwind
colors: {
  custom: {
    50: '#ce73bf',
    500: '#b42aa4',
    950: '#000000',
  },
}
SCSS
$custom: #b42aa4;
$custom-light: #ce73bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b42aa4",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 306.957,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54817,
    "c": 0.21405,
    "h": 333.4
  },
  "luminance": 0.1404
}

Semantic roles & 50–950 ramp

primary
#B42AA4
secondary
#72C87C
accent
#E55543
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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