#B52AAC#B52AAC

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

Color values

HEX#B52AAC
RGBrgb(181, 42, 172)
HSLhsl(304, 62%, 44%)
HSVhsv(304, 77%, 71%)
CMYKcmyk(0%, 76.8%, 5%, 29%)
CIE-LABlab(44.89, 67.58, -38.71)
CIE-LCHlch(44.89, 77.88, 330.20°)
OKLaboklab(55.41% 0.1926 -0.1068)
OKLCHoklch(55.41% 0.22 331)
XYZxyz(27.3304, 14.4605, 40.3734)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52AAC #2AB533
analogous
#782AB5 #B52AAC #B52A66
triadic
#B52AAC #ACB52A #2AACB5
tetradic
#B52AAC #B5782A #2AB533 #2A66B5
square
#B52AAC #B5782A #2AB533 #2A66B5
split-complementary
#B52AAC #66B52A #2AB578
monochromatic
#52134E #831E7D #B52AAC #D448CB #E079D9

Accessibility & contrast

On white

5.40
#B52AAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B52AAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52AAC
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52AAC#FFFFFF#000000##FFFFFF
##B52AAC1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b52aac;
/* rgb */ color: rgb(181, 42, 172);
/* oklch */ color: oklch(55.4% 0.220 331.0);
Tailwind
colors: {
  custom: {
    50: '#cf74c5',
    500: '#b52aac',
    950: '#000000',
  },
}
SCSS
$custom: #b52aac;
$custom-light: #cf74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b52aac",
  "rgb": {
    "r": 181,
    "g": 42,
    "b": 172
  },
  "hsl": {
    "h": 303.885,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55411,
    "c": 0.22026,
    "h": 331
  },
  "luminance": 0.14458
}

Semantic roles & 50–950 ramp

primary
#B52AAC
secondary
#73C878
accent
#E54D42
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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