#B52A9E#B52A9E

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

Color values

HEX#B52A9E
RGBrgb(181, 42, 158)
HSLhsl(310, 62%, 44%)
HSVhsv(310, 77%, 71%)
CMYKcmyk(0%, 76.8%, 12.7%, 29%)
CIE-LABlab(44.16, 65.49, -31.51)
CIE-LCHlch(44.16, 72.67, 334.31°)
OKLaboklab(54.66% 0.192 -0.086)
OKLCHoklch(54.66% 0.21 335.9)
XYZxyz(26.0560, 13.9507, 33.6616)
Luminance0.1395 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52A9E #2AB541
analogous
#862AB5 #B52A9E #B52A58
triadic
#B52A9E #9EB52A #2A9EB5
tetradic
#B52A9E #B5862A #2AB541 #2A58B5
square
#B52A9E #B5862A #2AB541 #2A58B5
split-complementary
#B52A9E #58B52A #2AB586
monochromatic
#521347 #831E73 #B52A9E #D448BD #E079CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B52A9E#FFFFFF#000000##FFFFFF
##B52A9E1.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)
#2C5BA1
Deuteranopia (green-blind)
#5E709B
Tritanopia (blue-blind)
#BE3562
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b52a9e;
/* rgb */ color: rgb(181, 42, 158);
/* oklch */ color: oklch(54.7% 0.210 335.9);
Tailwind
colors: {
  custom: {
    50: '#cf73bb',
    500: '#b52a9e',
    950: '#000000',
  },
}
SCSS
$custom: #b52a9e;
$custom-light: #cf73bb;
$custom-dark: #000000;
JSON
{
  "hex": "#b52a9e",
  "rgb": {
    "r": 181,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 309.928,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54658,
    "c": 0.21041,
    "h": 335.9
  },
  "luminance": 0.13948
}

Semantic roles & 50–950 ramp

primary
#B52A9E
secondary
#73C881
accent
#E55D42
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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