#B52FB1#B52FB1

#B52FB1 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.1% C 0.219 H 329.3°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B52FB1
RGBrgb(181, 47, 177)
HSLhsl(302, 59%, 45%)
HSVhsv(302, 74%, 71%)
CMYKcmyk(0%, 74%, 2.2%, 29%)
CIE-LABlab(45.68, 66.86, -40.41)
CIE-LCHlch(45.68, 78.12, 328.86°)
OKLaboklab(56.07% 0.1884 -0.1117)
OKLCHoklch(56.07% 0.219 329.3)
XYZxyz(28.0082, 15.0332, 43.0130)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FB1 #2FB533
analogous
#762FB5 #B52FB1 #B52F6E
triadic
#B52FB1 #B1B52F #2FB1B5
tetradic
#B52FB1 #B5762F #2FB533 #2F6EB5
square
#B52FB1 #B5762F #2FB533 #2F6EB5
split-complementary
#B52FB1 #6EB52F #2FB576
monochromatic
#541652 #842281 #B52FB1 #D150CE #DE80DB

Accessibility & contrast

On white

5.24
#B52FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B52FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52FB1
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FB1#FFFFFF#000000##FFFFFF
##B52FB11.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A61B5
Deuteranopia (green-blind)
#5672AE
Tritanopia (blue-blind)
#BB426E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52fb1;
/* rgb */ color: rgb(181, 47, 177);
/* oklch */ color: oklch(56.1% 0.219 329.3);
Tailwind
colors: {
  custom: {
    50: '#cf76c9',
    500: '#b52fb1',
    950: '#000000',
  },
}
SCSS
$custom: #b52fb1;
$custom-light: #cf76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fb1",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 177
  },
  "hsl": {
    "h": 301.791,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56066,
    "c": 0.21903,
    "h": 329.3
  },
  "luminance": 0.15031
}

Semantic roles & 50–950 ramp

primary
#B52FB1
secondary
#79C77B
accent
#E24A46
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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