#B52FB4#B52FB4

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

Color values

HEX#B52FB4
RGBrgb(181, 47, 180)
HSLhsl(300, 59%, 45%)
HSVhsv(300, 74%, 71%)
CMYKcmyk(0%, 74%, 0.6%, 29%)
CIE-LABlab(45.84, 67.35, -41.91)
CIE-LCHlch(45.84, 79.32, 328.11°)
OKLaboklab(56.24% 0.1884 -0.1161)
OKLCHoklch(56.24% 0.221 328.4)
XYZxyz(28.3105, 15.1542, 44.6051)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FB4 #2FB530
analogous
#732FB5 #B52FB4 #B52F71
triadic
#B52FB4 #B4B52F #2FB4B5
tetradic
#B52FB4 #B5732F #2FB530 #2F71B5
square
#B52FB4 #B5732F #2FB530 #2F71B5
split-complementary
#B52FB4 #71B52F #2FB573
monochromatic
#541653 #842284 #B52FB4 #D150D1 #DE80DD

Accessibility & contrast

On white

5.21
#B52FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B52FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52FB4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FB4#FFFFFF#000000##FFFFFF
##B52FB41.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1461B8
Deuteranopia (green-blind)
#5573B1
Tritanopia (blue-blind)
#BB4470
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b52fb4;
/* rgb */ color: rgb(181, 47, 180);
/* oklch */ color: oklch(56.2% 0.221 328.4);
Tailwind
colors: {
  custom: {
    50: '#cf76cb',
    500: '#b52fb4',
    950: '#000000',
  },
}
SCSS
$custom: #b52fb4;
$custom-light: #cf76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fb4",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 300.448,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56237,
    "c": 0.22129,
    "h": 328.4
  },
  "luminance": 0.15152
}

Semantic roles & 50–950 ramp

primary
#B52FB4
secondary
#79C779
accent
#E24746
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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