#B52BAC#B52BAC

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

Color values

HEX#B52BAC
RGBrgb(181, 43, 172)
HSLhsl(304, 62%, 44%)
HSVhsv(304, 76%, 71%)
CMYKcmyk(0%, 76.2%, 5%, 29%)
CIE-LABlab(44.99, 67.29, -38.55)
CIE-LCHlch(44.99, 77.55, 330.19°)
OKLaboklab(55.48% 0.1918 -0.1063)
OKLCHoklch(55.48% 0.219 331)
XYZxyz(27.3663, 14.5323, 40.3854)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52BAC #2BB534
analogous
#792BB5 #B52BAC #B52B67
triadic
#B52BAC #ACB52B #2BACB5
tetradic
#B52BAC #B5792B #2BB534 #2B67B5
square
#B52BAC #B5792B #2BB534 #2B67B5
split-complementary
#B52BAC #67B52B #2BB579
monochromatic
#52144E #841F7D #B52BAC #D449CB #E07BD9

Accessibility & contrast

On white

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

On black

3.91
#B52BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B52BAC#FFFFFF#000000##FFFFFF
##B52BAC1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5EAF
Deuteranopia (green-blind)
#5871A9
Tritanopia (blue-blind)
#BC3D6A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52bac;
/* rgb */ color: rgb(181, 43, 172);
/* oklch */ color: oklch(55.5% 0.219 331.0);
Tailwind
colors: {
  custom: {
    50: '#cf74c5',
    500: '#b52bac',
    950: '#000000',
  },
}
SCSS
$custom: #b52bac;
$custom-light: #cf74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b52bac",
  "rgb": {
    "r": 181,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 303.913,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55483,
    "c": 0.21931,
    "h": 331
  },
  "luminance": 0.1453
}

Semantic roles & 50–950 ramp

primary
#B52BAC
secondary
#74C879
accent
#E54E43
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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