#B52AB8#B52AB8

#B52AB8 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.1% C 0.229 H 327.2°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B52AB8
RGBrgb(181, 42, 184)
HSLhsl(299, 63%, 44%)
HSVhsv(299, 77%, 72%)
CMYKcmyk(1.6%, 77.2%, 0%, 27.8%)
CIE-LABlab(45.56, 69.48, -44.72)
CIE-LCHlch(45.56, 82.62, 327.23°)
OKLaboklab(56.1% 0.1925 -0.1242)
OKLCHoklch(56.1% 0.229 327.2)
XYZxyz(28.5353, 14.9424, 46.7193)
Luminance0.1494 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52AB8 #2DB82A
analogous
#6E2AB8 #B52AB8 #B82A74
triadic
#B52AB8 #B8B52A #2AB8B5
tetradic
#B52AB8 #B86E2A #2DB82A #2A74B8
square
#B52AB8 #B86E2A #2DB82A #2A74B8
split-complementary
#B52AB8 #74B82A #2AB86E
monochromatic
#531354 #841F86 #B52AB8 #D34AD6 #DF7BE1

Accessibility & contrast

On white

5.27
#B52AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B52AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52AB8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52AB8#FFFFFF#000000##FFFFFF
##B52AB81.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BC
Deuteranopia (green-blind)
#5072B5
Tritanopia (blue-blind)
#BA4371
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52ab8;
/* rgb */ color: rgb(181, 42, 184);
/* oklch */ color: oklch(56.1% 0.229 327.2);
Tailwind
colors: {
  custom: {
    50: '#cf74ce',
    500: '#b52ab8',
    950: '#000000',
  },
}
SCSS
$custom: #b52ab8;
$custom-light: #cf74ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b52ab8",
  "rgb": {
    "r": 181,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 298.732,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56104,
    "c": 0.22909,
    "h": 327.2
  },
  "luminance": 0.1494
}

Semantic roles & 50–950 ramp

primary
#B52AB8
secondary
#76C975
accent
#E64245
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B52AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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