#B52FB5#B52FB5

#B52FB5 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.3% C 0.222 H 328.0°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#B52FB5
RGBrgb(181, 47, 181)
HSLhsl(300, 59%, 45%)
HSVhsv(300, 74%, 71%)
CMYKcmyk(0%, 74%, 0%, 29%)
CIE-LABlab(45.90, 67.51, -42.41)
CIE-LCHlch(45.90, 79.72, 327.86°)
OKLaboklab(56.29% 0.1884 -0.1175)
OKLCHoklch(56.29% 0.222 328)
XYZxyz(28.4127, 15.1951, 45.1436)
Luminance0.1519 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52FB5 #2FB52F
analogous
#722FB5 #B52FB5 #B52F72
triadic
#B52FB5 #B5B52F #2FB5B5
tetradic
#B52FB5 #B5722F #2FB52F #2F72B5
square
#B52FB5 #B5722F #2FB52F #2F72B5
split-complementary
#B52FB5 #72B52F #2FB572
monochromatic
#541654 #842284 #B52FB5 #D150D1 #DE80DE

Accessibility & contrast

On white

5.20
#B52FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#B52FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52FB5
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52FB5#FFFFFF#000000##FFFFFF
##B52FB51.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1162B9
Deuteranopia (green-blind)
#5473B2
Tritanopia (blue-blind)
#BB4470
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b52fb5;
/* rgb */ color: rgb(181, 47, 181);
/* oklch */ color: oklch(56.3% 0.222 328.0);
Tailwind
colors: {
  custom: {
    50: '#cf76cc',
    500: '#b52fb5',
    950: '#000000',
  },
}
SCSS
$custom: #b52fb5;
$custom-light: #cf76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b52fb5",
  "rgb": {
    "r": 181,
    "g": 47,
    "b": 181
  },
  "hsl": {
    "h": 300,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56295,
    "c": 0.22204,
    "h": 328
  },
  "luminance": 0.15193
}

Semantic roles & 50–950 ramp

primary
#B52FB5
secondary
#79C779
accent
#E24646
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B52FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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