#B52AA9#B52AA9

#B52AA9 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.218 H 332.0°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B52AA9
RGBrgb(181, 42, 169)
HSLhsl(305, 62%, 44%)
HSVhsv(305, 77%, 71%)
CMYKcmyk(0%, 76.8%, 6.6%, 29%)
CIE-LABlab(44.73, 67.12, -37.18)
CIE-LCHlch(44.73, 76.73, 331.01°)
OKLaboklab(55.25% 0.1926 -0.1023)
OKLCHoklch(55.25% 0.218 332)
XYZxyz(27.0455, 14.3465, 38.8732)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52AA9 #2AB536
analogous
#7B2AB5 #B52AA9 #B52A63
triadic
#B52AA9 #A9B52A #2AA9B5
tetradic
#B52AA9 #B57B2A #2AB536 #2A63B5
square
#B52AA9 #B57B2A #2AB536 #2A63B5
split-complementary
#B52AA9 #63B52A #2AB57B
monochromatic
#52134C #831E7B #B52AA9 #D448C8 #E079D7

Accessibility & contrast

On white

5.43
#B52AA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B52AA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52AA9
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52AA9#FFFFFF#000000##FFFFFF
##B52AA91.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5DAC
Deuteranopia (green-blind)
#5971A6
Tritanopia (blue-blind)
#BD3B68
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52aa9;
/* rgb */ color: rgb(181, 42, 169);
/* oklch */ color: oklch(55.2% 0.218 332.0);
Tailwind
colors: {
  custom: {
    50: '#cf74c3',
    500: '#b52aa9',
    950: '#000000',
  },
}
SCSS
$custom: #b52aa9;
$custom-light: #cf74c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b52aa9",
  "rgb": {
    "r": 181,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 305.18,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55245,
    "c": 0.21811,
    "h": 332
  },
  "luminance": 0.14344
}

Semantic roles & 50–950 ramp

primary
#B52AA9
secondary
#73C87A
accent
#E55042
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B52AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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