#B52AB1#B52AB1

#B52AB1 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.7% C 0.224 H 329.4°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B52AB1
RGBrgb(181, 42, 177)
HSLhsl(302, 62%, 44%)
HSVhsv(302, 77%, 71%)
CMYKcmyk(0%, 76.8%, 2.2%, 29%)
CIE-LABlab(45.16, 68.36, -41.23)
CIE-LCHlch(45.16, 79.83, 328.90°)
OKLaboklab(55.69% 0.1927 -0.1141)
OKLCHoklch(55.69% 0.224 329.4)
XYZxyz(27.8196, 14.6562, 42.9501)
Luminance0.1465 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52AB1 #2AB52E
analogous
#732AB5 #B52AB1 #B52A6B
triadic
#B52AB1 #B1B52A #2AB1B5
tetradic
#B52AB1 #B5732A #2AB52E #2A6BB5
square
#B52AB1 #B5732A #2AB52E #2A6BB5
split-complementary
#B52AB1 #6BB52A #2AB573
monochromatic
#521350 #831E80 #B52AB1 #D448D0 #E079DD

Accessibility & contrast

On white

5.34
#B52AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B52AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52AB1
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52AB1#FFFFFF#000000##FFFFFF
##B52AB11.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5FB5
Deuteranopia (green-blind)
#5471AE
Tritanopia (blue-blind)
#BB3F6D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b52ab1;
/* rgb */ color: rgb(181, 42, 177);
/* oklch */ color: oklch(55.7% 0.224 329.4);
Tailwind
colors: {
  custom: {
    50: '#cf74c9',
    500: '#b52ab1',
    950: '#000000',
  },
}
SCSS
$custom: #b52ab1;
$custom-light: #cf74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b52ab1",
  "rgb": {
    "r": 181,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 301.727,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55695,
    "c": 0.2239,
    "h": 329.4
  },
  "luminance": 0.14654
}

Semantic roles & 50–950 ramp

primary
#B52AB1
secondary
#73C875
accent
#E54742
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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