#B52AA1#B52AA1

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

Color values

HEX#B52AA1
RGBrgb(181, 42, 161)
HSLhsl(309, 62%, 44%)
HSVhsv(309, 77%, 71%)
CMYKcmyk(0%, 76.8%, 11%, 29%)
CIE-LABlab(44.31, 65.92, -33.07)
CIE-LCHlch(44.31, 73.75, 333.36°)
OKLaboklab(54.81% 0.1922 -0.0905)
OKLCHoklch(54.81% 0.212 334.8)
XYZxyz(26.3174, 14.0553, 35.0382)
Luminance0.1405 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52AA1 #2AB53E
analogous
#832AB5 #B52AA1 #B52A5B
triadic
#B52AA1 #A1B52A #2AA1B5
tetradic
#B52AA1 #B5832A #2AB53E #2A5BB5
square
#B52AA1 #B5832A #2AB53E #2A5BB5
split-complementary
#B52AA1 #5BB52A #2AB583
monochromatic
#521349 #831E75 #B52AA1 #D448C0 #E079D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B52AA1#FFFFFF#000000##FFFFFF
##B52AA11.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)
#295CA4
Deuteranopia (green-blind)
#5D709E
Tritanopia (blue-blind)
#BE3764
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b52aa1;
/* rgb */ color: rgb(181, 42, 161);
/* oklch */ color: oklch(54.8% 0.212 334.8);
Tailwind
colors: {
  custom: {
    50: '#cf73bd',
    500: '#b52aa1',
    950: '#000000',
  },
}
SCSS
$custom: #b52aa1;
$custom-light: #cf73bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b52aa1",
  "rgb": {
    "r": 181,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 308.633,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54814,
    "c": 0.21247,
    "h": 334.8
  },
  "luminance": 0.14053
}

Semantic roles & 50–950 ramp

primary
#B52AA1
secondary
#73C87F
accent
#E55A42
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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