#B52B9F#B52B9F

#B52B9F is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 54.8% C 0.210 H 335.5°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B52B9F
RGBrgb(181, 43, 159)
HSLhsl(310, 62%, 44%)
HSVhsv(310, 76%, 71%)
CMYKcmyk(0%, 76.2%, 12.2%, 29%)
CIE-LABlab(44.31, 65.34, -31.87)
CIE-LCHlch(44.31, 72.69, 334.00°)
OKLaboklab(54.78% 0.1912 -0.087)
OKLCHoklch(54.78% 0.21 335.5)
XYZxyz(26.1783, 14.0571, 34.1287)
Luminance0.1406 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52B9F #2BB541
analogous
#862BB5 #B52B9F #B52B5A
triadic
#B52B9F #9FB52B #2B9FB5
tetradic
#B52B9F #B5862B #2BB541 #2B5AB5
square
#B52B9F #B5862B #2BB541 #2B5AB5
split-complementary
#B52B9F #5AB52B #2BB586
monochromatic
#521448 #841F74 #B52B9F #D449BE #E07BD0

Accessibility & contrast

On white

5.51
#B52B9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#B52B9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52B9F
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52B9F#FFFFFF#000000##FFFFFF
##B52B9F1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5CA2
Deuteranopia (green-blind)
#5E709C
Tritanopia (blue-blind)
#BE3663
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b52b9f;
/* rgb */ color: rgb(181, 43, 159);
/* oklch */ color: oklch(54.8% 0.210 335.5);
Tailwind
colors: {
  custom: {
    50: '#cf74bc',
    500: '#b52b9f',
    950: '#000000',
  },
}
SCSS
$custom: #b52b9f;
$custom-light: #cf74bc;
$custom-dark: #000000;
JSON
{
  "hex": "#b52b9f",
  "rgb": {
    "r": 181,
    "g": 43,
    "b": 159
  },
  "hsl": {
    "h": 309.565,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.54783,
    "c": 0.21011,
    "h": 335.5
  },
  "luminance": 0.14055
}

Semantic roles & 50–950 ramp

primary
#B52B9F
secondary
#74C881
accent
#E55D43
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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