#B52DB4#B52DB4

#B52DB4 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.1% C 0.223 H 328.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B52DB4
RGBrgb(181, 45, 180)
HSLhsl(300, 60%, 44%)
HSVhsv(300, 75%, 71%)
CMYKcmyk(0%, 75.1%, 0.6%, 29%)
CIE-LABlab(45.63, 67.96, -42.25)
CIE-LCHlch(45.63, 80.02, 328.13°)
OKLaboklab(56.08% 0.1901 -0.1171)
OKLCHoklch(56.08% 0.223 328.4)
XYZxyz(28.2324, 14.9979, 44.5791)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52DB4 #2DB52E
analogous
#722DB5 #B52DB4 #B52D70
triadic
#B52DB4 #B4B52D #2DB4B5
tetradic
#B52DB4 #B5722D #2DB52E #2D70B5
square
#B52DB4 #B5722D #2DB52E #2D70B5
split-complementary
#B52DB4 #70B52D #2DB572
monochromatic
#531553 #842183 #B52DB4 #D34DD2 #DF7EDE

Accessibility & contrast

On white

5.25
#B52DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B52DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52DB4
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52DB4#FFFFFF#000000##FFFFFF
##B52DB41.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E61B8
Deuteranopia (green-blind)
#5472B1
Tritanopia (blue-blind)
#BB436F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52db4;
/* rgb */ color: rgb(181, 45, 180);
/* oklch */ color: oklch(56.1% 0.223 328.4);
Tailwind
colors: {
  custom: {
    50: '#cf75cb',
    500: '#b52db4',
    950: '#000000',
  },
}
SCSS
$custom: #b52db4;
$custom-light: #cf75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b52db4",
  "rgb": {
    "r": 181,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 300.441,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56085,
    "c": 0.22327,
    "h": 328.4
  },
  "luminance": 0.14996
}

Semantic roles & 50–950 ramp

primary
#B52DB4
secondary
#76C777
accent
#E34644
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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