#B52FA3#B52FA3

#B52FA3 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.3% C 0.209 H 334.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B52FA3
RGBrgb(181, 47, 163)
HSLhsl(308, 59%, 45%)
HSVhsv(308, 74%, 71%)
CMYKcmyk(0%, 74%, 9.9%, 29%)
CIE-LABlab(44.95, 64.70, -33.26)
CIE-LCHlch(44.95, 72.75, 332.79°)
OKLaboklab(55.3% 0.1879 -0.0911)
OKLCHoklch(55.3% 0.209 334.1)
XYZxyz(26.6837, 14.5034, 36.0373)
Luminance0.1450 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FA3 #2FB541
analogous
#842FB5 #B52FA3 #B52F60
triadic
#B52FA3 #A3B52F #2FA3B5
tetradic
#B52FA3 #B5842F #2FB541 #2F60B5
square
#B52FA3 #B5842F #2FB541 #2F60B5
split-complementary
#B52FA3 #60B52F #2FB584
monochromatic
#54164B #842277 #B52FA3 #D150C0 #DE80D1

Accessibility & contrast

On white

5.38
#B52FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B52FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52FA3
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FA3#FFFFFF#000000##FFFFFF
##B52FA31.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5EA6
Deuteranopia (green-blind)
#5E71A0
Tritanopia (blue-blind)
#BE3B66
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52fa3;
/* rgb */ color: rgb(181, 47, 163);
/* oklch */ color: oklch(55.3% 0.209 334.1);
Tailwind
colors: {
  custom: {
    50: '#cf75be',
    500: '#b52fa3',
    950: '#000000',
  },
}
SCSS
$custom: #b52fa3;
$custom-light: #cf75be;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fa3",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 308.06,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55303,
    "c": 0.20879,
    "h": 334.1
  },
  "luminance": 0.14501
}

Semantic roles & 50–950 ramp

primary
#B52FA3
secondary
#79C783
accent
#E25B46
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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