#B52DB8#B52DB8

#B52DB8 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.3% C 0.226 H 327.1°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B52DB8
RGBrgb(181, 45, 184)
HSLhsl(299, 61%, 45%)
HSVhsv(299, 76%, 72%)
CMYKcmyk(1.6%, 75.5%, 0%, 27.8%)
CIE-LABlab(45.86, 68.61, -44.24)
CIE-LCHlch(45.86, 81.63, 327.19°)
OKLaboklab(56.32% 0.19 -0.1228)
OKLCHoklch(56.32% 0.226 327.1)
XYZxyz(28.6457, 15.1633, 46.7561)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52DB8 #30B82D
analogous
#6F2DB8 #B52DB8 #B82D76
triadic
#B52DB8 #B8B52D #2DB8B5
tetradic
#B52DB8 #B86F2D #30B82D #2D76B8
square
#B52DB8 #B86F2D #30B82D #2D76B8
split-complementary
#B52DB8 #76B82D #2DB86F
monochromatic
#541556 #852187 #B52DB8 #D14ED4 #DE80E0

Accessibility & contrast

On white

5.21
#B52DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B52DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52DB8
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52DB8#FFFFFF#000000##FFFFFF
##B52DB81.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BC
Deuteranopia (green-blind)
#5172B5
Tritanopia (blue-blind)
#BA4571
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b52db8;
/* rgb */ color: rgb(181, 45, 184);
/* oklch */ color: oklch(56.3% 0.226 327.1);
Tailwind
colors: {
  custom: {
    50: '#cf75ce',
    500: '#b52db8',
    950: '#000000',
  },
}
SCSS
$custom: #b52db8;
$custom-light: #cf75ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b52db8",
  "rgb": {
    "r": 181,
    "g": 45,
    "b": 184
  },
  "hsl": {
    "h": 298.705,
    "s": 60.699,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56318,
    "c": 0.22628,
    "h": 327.1
  },
  "luminance": 0.15161
}

Semantic roles & 50–950 ramp

primary
#B52DB8
secondary
#7AC978
accent
#E44447
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B52DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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