#B52AA6#B52AA6

#B52AA6 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.1% C 0.216 H 333.0°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#B52AA6
RGBrgb(181, 42, 166)
HSLhsl(306, 62%, 44%)
HSVhsv(306, 77%, 71%)
CMYKcmyk(0%, 76.8%, 8.3%, 29%)
CIE-LABlab(44.57, 66.67, -35.65)
CIE-LCHlch(44.57, 75.60, 331.87°)
OKLaboklab(55.08% 0.1925 -0.0979)
OKLCHoklch(55.08% 0.216 333)
XYZxyz(26.7671, 14.2352, 37.4069)
Luminance0.1423 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52AA6 #2AB539
analogous
#7E2AB5 #B52AA6 #B52A60
triadic
#B52AA6 #A6B52A #2AA6B5
tetradic
#B52AA6 #B57E2A #2AB539 #2A60B5
square
#B52AA6 #B57E2A #2AB539 #2A60B5
split-complementary
#B52AA6 #60B52A #2AB57E
monochromatic
#52134B #831E78 #B52AA6 #D448C5 #E079D5

Accessibility & contrast

On white

5.46
#B52AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#B52AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52AA6
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52AA6#FFFFFF#000000##FFFFFF
##B52AA61.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235DA9
Deuteranopia (green-blind)
#5A70A3
Tritanopia (blue-blind)
#BD3966
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b52aa6;
/* rgb */ color: rgb(181, 42, 166);
/* oklch */ color: oklch(55.1% 0.216 333.0);
Tailwind
colors: {
  custom: {
    50: '#cf73c1',
    500: '#b52aa6',
    950: '#000000',
  },
}
SCSS
$custom: #b52aa6;
$custom-light: #cf73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b52aa6",
  "rgb": {
    "r": 181,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 306.475,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55081,
    "c": 0.21597,
    "h": 333
  },
  "luminance": 0.14233
}

Semantic roles & 50–950 ramp

primary
#B52AA6
secondary
#73C87C
accent
#E55442
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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