#B52BAA#B52BAA

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

Color values

HEX#B52BAA
RGBrgb(181, 43, 170)
HSLhsl(305, 62%, 44%)
HSVhsv(305, 76%, 71%)
CMYKcmyk(0%, 76.2%, 6.1%, 29%)
CIE-LABlab(44.88, 66.98, -37.53)
CIE-LCHlch(44.88, 76.78, 330.74°)
OKLaboklab(55.37% 0.1918 -0.1034)
OKLCHoklch(55.37% 0.218 331.7)
XYZxyz(27.1757, 14.4560, 39.3814)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52BAA #2BB536
analogous
#7B2BB5 #B52BAA #B52B65
triadic
#B52BAA #AAB52B #2BAAB5
tetradic
#B52BAA #B57B2B #2BB536 #2B65B5
square
#B52BAA #B57B2B #2BB536 #2B65B5
split-complementary
#B52BAA #65B52B #2BB57B
monochromatic
#52144D #841F7C #B52BAA #D449C9 #E07BD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B52BAA#FFFFFF#000000##FFFFFF
##B52BAA1.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)
#1F5EAD
Deuteranopia (green-blind)
#5971A7
Tritanopia (blue-blind)
#BD3C69
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52baa;
/* rgb */ color: rgb(181, 43, 170);
/* oklch */ color: oklch(55.4% 0.218 331.7);
Tailwind
colors: {
  custom: {
    50: '#cf74c4',
    500: '#b52baa',
    950: '#000000',
  },
}
SCSS
$custom: #b52baa;
$custom-light: #cf74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b52baa",
  "rgb": {
    "r": 181,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 304.783,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55372,
    "c": 0.21786,
    "h": 331.7
  },
  "luminance": 0.14454
}

Semantic roles & 50–950 ramp

primary
#B52BAA
secondary
#74C87B
accent
#E55043
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B52BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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