#B52AB5#B52AB5

#B52AB5 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.9% C 0.227 H 328.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#B52AB5
RGBrgb(181, 42, 181)
HSLhsl(300, 62%, 44%)
HSVhsv(300, 77%, 71%)
CMYKcmyk(0%, 76.8%, 0%, 29%)
CIE-LABlab(45.38, 68.99, -43.23)
CIE-LCHlch(45.38, 81.42, 327.93°)
OKLaboklab(55.93% 0.1926 -0.1199)
OKLCHoklch(55.93% 0.227 328.1)
XYZxyz(28.2242, 14.8180, 45.0807)
Luminance0.1482 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52AB5 #2AB52A
analogous
#6F2AB5 #B52AB5 #B52A6F
triadic
#B52AB5 #B5B52A #2AB5B5
tetradic
#B52AB5 #B56F2A #2AB52A #2A6FB5
square
#B52AB5 #B56F2A #2AB52A #2A6FB5
split-complementary
#B52AB5 #6FB52A #2AB56F
monochromatic
#521352 #831E83 #B52AB5 #D448D4 #E079E0

Accessibility & contrast

On white

5.30
#B52AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#B52AB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52AB5
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52AB5#FFFFFF#000000##FFFFFF
##B52AB51.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060B9
Deuteranopia (green-blind)
#5272B2
Tritanopia (blue-blind)
#BB416F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b52ab5;
/* rgb */ color: rgb(181, 42, 181);
/* oklch */ color: oklch(55.9% 0.227 328.1);
Tailwind
colors: {
  custom: {
    50: '#cf74cc',
    500: '#b52ab5',
    950: '#000000',
  },
}
SCSS
$custom: #b52ab5;
$custom-light: #cf74cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b52ab5",
  "rgb": {
    "r": 181,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 300,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55927,
    "c": 0.22685,
    "h": 328.1
  },
  "luminance": 0.14816
}

Semantic roles & 50–950 ramp

primary
#B52AB5
secondary
#73C873
accent
#E54242
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B52AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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