#B42AA2#B42AA2

#B42AA2 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.7% C 0.213 H 334.1°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#B42AA2
RGBrgb(180, 42, 162)
HSLhsl(308, 62%, 44%)
HSVhsv(308, 77%, 71%)
CMYKcmyk(0%, 76.7%, 10%, 29.4%)
CIE-LABlab(44.19, 65.85, -33.87)
CIE-LCHlch(44.19, 74.05, 332.78°)
OKLaboklab(54.71% 0.1913 -0.0928)
OKLCHoklch(54.71% 0.213 334.1)
XYZxyz(26.1722, 13.9702, 35.4935)
Luminance0.1397 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42AA2 #2AB43C
analogous
#812AB4 #B42AA2 #B42A5D
triadic
#B42AA2 #A2B42A #2AA2B4
tetradic
#B42AA2 #B4812A #2AB43C #2A5DB4
square
#B42AA2 #B4812A #2AB43C #2A5DB4
split-complementary
#B42AA2 #5DB42A #2AB481
monochromatic
#511349 #821E75 #B42AA2 #D447C2 #E079D2

Accessibility & contrast

On white

5.54
#B42AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B42AA2
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42AA2#FFFFFF#000000##FFFFFF
##B42AA21.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA5
Deuteranopia (green-blind)
#5B709F
Tritanopia (blue-blind)
#BD3864
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b42aa2;
/* rgb */ color: rgb(180, 42, 162);
/* oklch */ color: oklch(54.7% 0.213 334.1);
Tailwind
colors: {
  custom: {
    50: '#ce73be',
    500: '#b42aa2',
    950: '#000000',
  },
}
SCSS
$custom: #b42aa2;
$custom-light: #ce73be;
$custom-dark: #000000;
JSON
{
  "hex": "#b42aa2",
  "rgb": {
    "r": 180,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 307.826,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.5471,
    "c": 0.21265,
    "h": 334.1
  },
  "luminance": 0.13968
}

Semantic roles & 50–950 ramp

primary
#B42AA2
secondary
#72C87D
accent
#E55843
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B42AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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