#B52DA6#B52DA6

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

Color values

HEX#B52DA6
RGBrgb(181, 45, 166)
HSLhsl(307, 60%, 44%)
HSVhsv(307, 75%, 71%)
CMYKcmyk(0%, 75.1%, 8.3%, 29%)
CIE-LABlab(44.88, 65.77, -35.16)
CIE-LCHlch(44.88, 74.58, 331.88°)
OKLaboklab(55.3% 0.1899 -0.0965)
OKLCHoklch(55.3% 0.213 333.1)
XYZxyz(26.8775, 14.4560, 37.4437)
Luminance0.1445 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52DA6 #2DB53C
analogous
#802DB5 #B52DA6 #B52D62
triadic
#B52DA6 #A6B52D #2DA6B5
tetradic
#B52DA6 #B5802D #2DB53C #2D62B5
square
#B52DA6 #B5802D #2DB53C #2D62B5
split-complementary
#B52DA6 #62B52D #2DB580
monochromatic
#53154C #842179 #B52DA6 #D34DC4 #DF7ED4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B52DA6#FFFFFF#000000##FFFFFF
##B52DA61.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)
#275EA9
Deuteranopia (green-blind)
#5B71A3
Tritanopia (blue-blind)
#BD3C67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52da6;
/* rgb */ color: rgb(181, 45, 166);
/* oklch */ color: oklch(55.3% 0.213 333.1);
Tailwind
colors: {
  custom: {
    50: '#cf75c1',
    500: '#b52da6',
    950: '#000000',
  },
}
SCSS
$custom: #b52da6;
$custom-light: #cf75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b52da6",
  "rgb": {
    "r": 181,
    "g": 45,
    "b": 166
  },
  "hsl": {
    "h": 306.618,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55304,
    "c": 0.21301,
    "h": 333.1
  },
  "luminance": 0.14454
}

Semantic roles & 50–950 ramp

primary
#B52DA6
secondary
#76C77F
accent
#E35644
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52DA6

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

Preview Lab → · Contrast checker → · Palette generator →

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