#B52A9D#B52A9D

#B52A9D is a mid, highly saturated pink. Relative luminance 0.139; OKLCH L 54.6% C 0.210 H 336.2°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#B52A9D
RGBrgb(181, 42, 157)
HSLhsl(310, 62%, 44%)
HSVhsv(310, 77%, 71%)
CMYKcmyk(0%, 76.8%, 13.3%, 29%)
CIE-LABlab(44.11, 65.34, -30.98)
CIE-LCHlch(44.11, 72.32, 334.63°)
OKLaboklab(54.61% 0.192 -0.0845)
OKLCHoklch(54.61% 0.21 336.2)
XYZxyz(25.9703, 13.9164, 33.2101)
Luminance0.1391 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52A9D #2AB542
analogous
#872AB5 #B52A9D #B52A57
triadic
#B52A9D #9DB52A #2A9DB5
tetradic
#B52A9D #B5872A #2AB542 #2A57B5
square
#B52A9D #B5872A #2AB542 #2A57B5
split-complementary
#B52A9D #57B52A #2AB587
monochromatic
#521347 #831E72 #B52A9D #D448BC #E079CE

Accessibility & contrast

On white

5.55
#B52A9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#B52A9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52A9D
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52A9D#FFFFFF#000000##FFFFFF
##B52A9D1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5BA0
Deuteranopia (green-blind)
#5E709A
Tritanopia (blue-blind)
#BF3561
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b52a9d;
/* rgb */ color: rgb(181, 42, 157);
/* oklch */ color: oklch(54.6% 0.210 336.2);
Tailwind
colors: {
  custom: {
    50: '#cf73ba',
    500: '#b52a9d',
    950: '#000000',
  },
}
SCSS
$custom: #b52a9d;
$custom-light: #cf73ba;
$custom-dark: #000000;
JSON
{
  "hex": "#b52a9d",
  "rgb": {
    "r": 181,
    "g": 42,
    "b": 157
  },
  "hsl": {
    "h": 310.36,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.54606,
    "c": 0.20973,
    "h": 336.2
  },
  "luminance": 0.13914
}

Semantic roles & 50–950 ramp

primary
#B52A9D
secondary
#73C882
accent
#E55F42
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B52A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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