#B52FA1#B52FA1

#B52FA1 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.2% C 0.207 H 334.9°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B52FA1
RGBrgb(181, 47, 161)
HSLhsl(309, 59%, 45%)
HSVhsv(309, 74%, 71%)
CMYKcmyk(0%, 74%, 11%, 29%)
CIE-LABlab(44.85, 64.40, -32.23)
CIE-LCHlch(44.85, 72.01, 333.41°)
OKLaboklab(55.2% 0.1877 -0.0881)
OKLCHoklch(55.2% 0.207 334.9)
XYZxyz(26.5059, 14.4323, 35.1010)
Luminance0.1443 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FA1 #2FB543
analogous
#862FB5 #B52FA1 #B52F5E
triadic
#B52FA1 #A1B52F #2FA1B5
tetradic
#B52FA1 #B5862F #2FB543 #2F5EB5
square
#B52FA1 #B5862F #2FB543 #2F5EB5
split-complementary
#B52FA1 #5EB52F #2FB586
monochromatic
#54164B #842276 #B52FA1 #D150BE #DE80D0

Accessibility & contrast

On white

5.40
#B52FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B52FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52FA1
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FA1#FFFFFF#000000##FFFFFF
##B52FA11.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5DA4
Deuteranopia (green-blind)
#5E719E
Tritanopia (blue-blind)
#BE3A65
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52fa1;
/* rgb */ color: rgb(181, 47, 161);
/* oklch */ color: oklch(55.2% 0.207 334.9);
Tailwind
colors: {
  custom: {
    50: '#cf75bd',
    500: '#b52fa1',
    950: '#000000',
  },
}
SCSS
$custom: #b52fa1;
$custom-light: #cf75bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fa1",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 308.955,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55198,
    "c": 0.20738,
    "h": 334.9
  },
  "luminance": 0.1443
}

Semantic roles & 50–950 ramp

primary
#B52FA1
secondary
#79C784
accent
#E25D46
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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