#B52D9F#B52D9F

#B52D9F is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 54.9% C 0.208 H 335.6°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#B52D9F
RGBrgb(181, 45, 159)
HSLhsl(310, 60%, 44%)
HSVhsv(310, 75%, 71%)
CMYKcmyk(0%, 75.1%, 12.2%, 29%)
CIE-LABlab(44.53, 64.73, -31.53)
CIE-LCHlch(44.53, 72.00, 334.03°)
OKLaboklab(54.94% 0.1894 -0.0861)
OKLCHoklch(54.94% 0.208 335.6)
XYZxyz(26.2528, 14.2061, 34.1536)
Luminance0.1420 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52D9F #2DB543
analogous
#872DB5 #B52D9F #B52D5B
triadic
#B52D9F #9FB52D #2D9FB5
tetradic
#B52D9F #B5872D #2DB543 #2D5BB5
square
#B52D9F #B5872D #2DB543 #2D5BB5
split-complementary
#B52D9F #5BB52D #2DB587
monochromatic
#531549 #842174 #B52D9F #D34DBD #DF7ECF

Accessibility & contrast

On white

5.47
#B52D9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#B52D9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52D9F
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52D9F#FFFFFF#000000##FFFFFF
##B52D9F1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5CA2
Deuteranopia (green-blind)
#5F709C
Tritanopia (blue-blind)
#BE3863
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b52d9f;
/* rgb */ color: rgb(181, 45, 159);
/* oklch */ color: oklch(54.9% 0.208 335.6);
Tailwind
colors: {
  custom: {
    50: '#cf74bb',
    500: '#b52d9f',
    950: '#000000',
  },
}
SCSS
$custom: #b52d9f;
$custom-light: #cf74bb;
$custom-dark: #000000;
JSON
{
  "hex": "#b52d9f",
  "rgb": {
    "r": 181,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 309.706,
    "s": 60.177,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54936,
    "c": 0.20808,
    "h": 335.6
  },
  "luminance": 0.14204
}

Semantic roles & 50–950 ramp

primary
#B52D9F
secondary
#76C784
accent
#E35E44
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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