#B52BA6#B52BA6

#B52BA6 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.215 H 333.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#B52BA6
RGBrgb(181, 43, 166)
HSLhsl(307, 62%, 44%)
HSVhsv(307, 76%, 71%)
CMYKcmyk(0%, 76.2%, 8.3%, 29%)
CIE-LABlab(44.67, 66.37, -35.49)
CIE-LCHlch(44.67, 75.26, 331.87°)
OKLaboklab(55.15% 0.1916 -0.0975)
OKLCHoklch(55.15% 0.215 333)
XYZxyz(26.8030, 14.3070, 37.4189)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52BA6 #2BB53A
analogous
#7F2BB5 #B52BA6 #B52B61
triadic
#B52BA6 #A6B52B #2BA6B5
tetradic
#B52BA6 #B57F2B #2BB53A #2B61B5
square
#B52BA6 #B57F2B #2BB53A #2B61B5
split-complementary
#B52BA6 #61B52B #2BB57F
monochromatic
#52144B #841F79 #B52BA6 #D449C5 #E07BD5

Accessibility & contrast

On white

5.44
#B52BA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#B52BA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52BA6
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52BA6#FFFFFF#000000##FFFFFF
##B52BA61.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245DA9
Deuteranopia (green-blind)
#5B71A3
Tritanopia (blue-blind)
#BD3A67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52ba6;
/* rgb */ color: rgb(181, 43, 166);
/* oklch */ color: oklch(55.2% 0.215 333.0);
Tailwind
colors: {
  custom: {
    50: '#cf74c1',
    500: '#b52ba6',
    950: '#000000',
  },
}
SCSS
$custom: #b52ba6;
$custom-light: #cf74c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b52ba6",
  "rgb": {
    "r": 181,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 306.522,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.55154,
    "c": 0.215,
    "h": 333
  },
  "luminance": 0.14305
}

Semantic roles & 50–950 ramp

primary
#B52BA6
secondary
#74C87D
accent
#E55543
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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