#B52F9F#B52F9F

#B52F9F is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.1% C 0.206 H 335.6°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B52F9F
RGBrgb(181, 47, 159)
HSLhsl(310, 59%, 45%)
HSVhsv(310, 74%, 71%)
CMYKcmyk(0%, 74%, 12.2%, 29%)
CIE-LABlab(44.75, 64.10, -31.19)
CIE-LCHlch(44.75, 71.28, 334.06°)
OKLaboklab(55.1% 0.1876 -0.0851)
OKLCHoklch(55.1% 0.206 335.6)
XYZxyz(26.3310, 14.3624, 34.1796)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52F9F #2FB545
analogous
#882FB5 #B52F9F #B52F5C
triadic
#B52F9F #9FB52F #2F9FB5
tetradic
#B52F9F #B5882F #2FB545 #2F5CB5
square
#B52F9F #B5882F #2FB545 #2F5CB5
split-complementary
#B52F9F #5CB52F #2FB588
monochromatic
#54164A #842274 #B52F9F #D150BC #DE80CF

Accessibility & contrast

On white

5.42
#B52F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B52F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52F9F
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52F9F#FFFFFF#000000##FFFFFF
##B52F9F1.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305DA2
Deuteranopia (green-blind)
#5F719C
Tritanopia (blue-blind)
#BE3964
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52f9f;
/* rgb */ color: rgb(181, 47, 159);
/* oklch */ color: oklch(55.1% 0.206 335.6);
Tailwind
colors: {
  custom: {
    50: '#cf75bb',
    500: '#b52f9f',
    950: '#000000',
  },
}
SCSS
$custom: #b52f9f;
$custom-light: #cf75bb;
$custom-dark: #000000;
JSON
{
  "hex": "#b52f9f",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 309.851,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55095,
    "c": 0.20598,
    "h": 335.6
  },
  "luminance": 0.1436
}

Semantic roles & 50–950 ramp

primary
#B52F9F
secondary
#79C786
accent
#E25F46
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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