#B52FB3#B52FB3

#B52FB3 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.221 H 328.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B52FB3
RGBrgb(181, 47, 179)
HSLhsl(301, 59%, 45%)
HSVhsv(301, 74%, 71%)
CMYKcmyk(0%, 74%, 1.1%, 29%)
CIE-LABlab(45.79, 67.18, -41.41)
CIE-LCHlch(45.79, 78.92, 328.35°)
OKLaboklab(56.18% 0.1884 -0.1146)
OKLCHoklch(56.18% 0.221 328.7)
XYZxyz(28.2090, 15.1136, 44.0705)
Luminance0.1511 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FB3 #2FB531
analogous
#742FB5 #B52FB3 #B52F70
triadic
#B52FB3 #B3B52F #2FB3B5
tetradic
#B52FB3 #B5742F #2FB531 #2F70B5
square
#B52FB3 #B5742F #2FB531 #2F70B5
split-complementary
#B52FB3 #70B52F #2FB574
monochromatic
#541653 #842283 #B52FB3 #D150D0 #DE80DD

Accessibility & contrast

On white

5.22
#B52FB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B52FB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52FB3
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FB3#FFFFFF#000000##FFFFFF
##B52FB31.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1661B7
Deuteranopia (green-blind)
#5573B0
Tritanopia (blue-blind)
#BB436F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52fb3;
/* rgb */ color: rgb(181, 47, 179);
/* oklch */ color: oklch(56.2% 0.221 328.7);
Tailwind
colors: {
  custom: {
    50: '#cf76ca',
    500: '#b52fb3',
    950: '#000000',
  },
}
SCSS
$custom: #b52fb3;
$custom-light: #cf76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fb3",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 179
  },
  "hsl": {
    "h": 300.896,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5618,
    "c": 0.22052,
    "h": 328.7
  },
  "luminance": 0.15111
}

Semantic roles & 50–950 ramp

primary
#B52FB3
secondary
#79C77A
accent
#E24846
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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