#B52DB6#B52DB6

#B52DB6 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.225 H 327.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B52DB6
RGBrgb(181, 45, 182)
HSLhsl(300, 60%, 45%)
HSVhsv(300, 75%, 71%)
CMYKcmyk(0.5%, 75.3%, 0%, 28.6%)
CIE-LABlab(45.74, 68.28, -43.25)
CIE-LCHlch(45.74, 80.82, 327.65°)
OKLaboklab(56.2% 0.1901 -0.12)
OKLCHoklch(56.2% 0.225 327.7)
XYZxyz(28.4376, 15.0800, 45.6598)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52DB6 #2EB62D
analogous
#712DB6 #B52DB6 #B62D73
triadic
#B52DB6 #B6B52D #2DB6B5
tetradic
#B52DB6 #B6712D #2EB62D #2D73B6
square
#B52DB6 #B6712D #2EB62D #2D73B6
split-complementary
#B52DB6 #73B62D #2DB671
monochromatic
#531554 #842185 #B52DB6 #D24DD3 #DE7EDF

Accessibility & contrast

On white

5.23
#B52DB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B52DB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52DB6
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52DB6#FFFFFF#000000##FFFFFF
##B52DB61.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0761BA
Deuteranopia (green-blind)
#5372B3
Tritanopia (blue-blind)
#BB4470
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52db6;
/* rgb */ color: rgb(181, 45, 182);
/* oklch */ color: oklch(56.2% 0.225 327.7);
Tailwind
colors: {
  custom: {
    50: '#cf75cc',
    500: '#b52db6',
    950: '#000000',
  },
}
SCSS
$custom: #b52db6;
$custom-light: #cf75cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b52db6",
  "rgb": {
    "r": 181,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 299.562,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56201,
    "c": 0.22478,
    "h": 327.7
  },
  "luminance": 0.15078
}

Semantic roles & 50–950 ramp

primary
#B52DB6
secondary
#78C877
accent
#E34445
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B52DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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