#B52FAB#B52FAB

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

Color values

HEX#B52FAB
RGBrgb(181, 47, 171)
HSLhsl(304, 59%, 45%)
HSVhsv(304, 74%, 71%)
CMYKcmyk(0%, 74%, 5.5%, 29%)
CIE-LABlab(45.36, 65.92, -37.37)
CIE-LCHlch(45.36, 75.77, 330.45°)
OKLaboklab(55.73% 0.1883 -0.1029)
OKLCHoklch(55.73% 0.215 331.3)
XYZxyz(27.4232, 14.7993, 39.9324)
Luminance0.1480 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FAB #2FB539
analogous
#7C2FB5 #B52FAB #B52F68
triadic
#B52FAB #ABB52F #2FABB5
tetradic
#B52FAB #B57C2F #2FB539 #2F68B5
square
#B52FAB #B57C2F #2FB539 #2F68B5
split-complementary
#B52FAB #68B52F #2FB57C
monochromatic
#54164F #84227D #B52FAB #D150C8 #DE80D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B52FAB#FFFFFF#000000##FFFFFF
##B52FAB1.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)
#235FAE
Deuteranopia (green-blind)
#5A72A8
Tritanopia (blue-blind)
#BC3F6B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b52fab;
/* rgb */ color: rgb(181, 47, 171);
/* oklch */ color: oklch(55.7% 0.215 331.3);
Tailwind
colors: {
  custom: {
    50: '#cf76c4',
    500: '#b52fab',
    950: '#000000',
  },
}
SCSS
$custom: #b52fab;
$custom-light: #cf76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fab",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 304.478,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55732,
    "c": 0.21458,
    "h": 331.3
  },
  "luminance": 0.14797
}

Semantic roles & 50–950 ramp

primary
#B52FAB
secondary
#79C77F
accent
#E25146
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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