#B52FA8#B52FA8

#B52FA8 is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.6% C 0.212 H 332.4°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#B52FA8
RGBrgb(181, 47, 168)
HSLhsl(306, 59%, 45%)
HSVhsv(306, 74%, 71%)
CMYKcmyk(0%, 74%, 7.2%, 29%)
CIE-LABlab(45.20, 65.45, -35.84)
CIE-LCHlch(45.20, 74.62, 331.30°)
OKLaboklab(55.57% 0.1882 -0.0985)
OKLCHoklch(55.57% 0.212 332.4)
XYZxyz(27.1405, 14.6862, 38.4435)
Luminance0.1468 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FA8 #2FB53C
analogous
#7F2FB5 #B52FA8 #B52F65
triadic
#B52FA8 #A8B52F #2FA8B5
tetradic
#B52FA8 #B57F2F #2FB53C #2F65B5
square
#B52FA8 #B57F2F #2FB53C #2F65B5
split-complementary
#B52FA8 #65B52F #2FB57F
monochromatic
#54164E #84227B #B52FA8 #D150C5 #DE80D5

Accessibility & contrast

On white

5.33
#B52FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B52FA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52FA8
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FA8#FFFFFF#000000##FFFFFF
##B52FA81.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275FAB
Deuteranopia (green-blind)
#5B72A5
Tritanopia (blue-blind)
#BD3E69
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b52fa8;
/* rgb */ color: rgb(181, 47, 168);
/* oklch */ color: oklch(55.6% 0.212 332.4);
Tailwind
colors: {
  custom: {
    50: '#cf75c2',
    500: '#b52fa8',
    950: '#000000',
  },
}
SCSS
$custom: #b52fa8;
$custom-light: #cf75c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fa8",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 305.821,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55568,
    "c": 0.21238,
    "h": 332.4
  },
  "luminance": 0.14684
}

Semantic roles & 50–950 ramp

primary
#B52FA8
secondary
#79C780
accent
#E25546
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B52FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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