#B52AB3#B52AB3

#B52AB3 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.8% C 0.225 H 328.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B52AB3
RGBrgb(181, 42, 179)
HSLhsl(301, 62%, 44%)
HSVhsv(301, 77%, 71%)
CMYKcmyk(0%, 76.8%, 1.1%, 29%)
CIE-LABlab(45.27, 68.67, -42.23)
CIE-LCHlch(45.27, 80.62, 328.41°)
OKLaboklab(55.81% 0.1926 -0.117)
OKLCHoklch(55.81% 0.225 328.7)
XYZxyz(28.0204, 14.7365, 44.0077)
Luminance0.1473 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52AB3 #2AB52C
analogous
#712AB5 #B52AB3 #B52A6D
triadic
#B52AB3 #B3B52A #2AB3B5
tetradic
#B52AB3 #B5712A #2AB52C #2A6DB5
square
#B52AB3 #B5712A #2AB52C #2A6DB5
split-complementary
#B52AB3 #6DB52A #2AB571
monochromatic
#521351 #831E82 #B52AB3 #D448D2 #E079DF

Accessibility & contrast

On white

5.32
#B52AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B52AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52AB3
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52AB3#FFFFFF#000000##FFFFFF
##B52AB31.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0860B7
Deuteranopia (green-blind)
#5371B0
Tritanopia (blue-blind)
#BB406E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b52ab3;
/* rgb */ color: rgb(181, 42, 179);
/* oklch */ color: oklch(55.8% 0.225 328.7);
Tailwind
colors: {
  custom: {
    50: '#cf74ca',
    500: '#b52ab3',
    950: '#000000',
  },
}
SCSS
$custom: #b52ab3;
$custom-light: #cf74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#b52ab3",
  "rgb": {
    "r": 181,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 300.863,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.5581,
    "c": 0.22537,
    "h": 328.7
  },
  "luminance": 0.14734
}

Semantic roles & 50–950 ramp

primary
#B52AB3
secondary
#73C874
accent
#E54542
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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