#B52EB5#B52EB5

#B52EB5 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.223 H 328.0°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B52EB5
RGBrgb(181, 46, 181)
HSLhsl(300, 59%, 45%)
HSVhsv(300, 75%, 71%)
CMYKcmyk(0%, 74.6%, 0%, 29%)
CIE-LABlab(45.79, 67.82, -42.58)
CIE-LCHlch(45.79, 80.08, 327.88°)
OKLaboklab(56.22% 0.1893 -0.118)
OKLCHoklch(56.22% 0.223 328)
XYZxyz(28.3732, 15.1160, 45.1304)
Luminance0.1511 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52EB5 #2EB52E
analogous
#722EB5 #B52EB5 #B52E72
triadic
#B52EB5 #B5B52E #2EB5B5
tetradic
#B52EB5 #B5722E #2EB52E #2E72B5
square
#B52EB5 #B5722E #2EB52E #2E72B5
split-complementary
#B52EB5 #72B52E #2EB572
monochromatic
#531553 #842284 #B52EB5 #D24ED2 #DE7FDE

Accessibility & contrast

On white

5.22
#B52EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B52EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52EB5
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52EB5#FFFFFF#000000##FFFFFF
##B52EB51.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E61B9
Deuteranopia (green-blind)
#5472B2
Tritanopia (blue-blind)
#BB4470
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52eb5;
/* rgb */ color: rgb(181, 46, 181);
/* oklch */ color: oklch(56.2% 0.223 328.0);
Tailwind
colors: {
  custom: {
    50: '#cf76cc',
    500: '#b52eb5',
    950: '#000000',
  },
}
SCSS
$custom: #b52eb5;
$custom-light: #cf76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b52eb5",
  "rgb": {
    "r": 181,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 300,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56218,
    "c": 0.22304,
    "h": 328
  },
  "luminance": 0.15114
}

Semantic roles & 50–950 ramp

primary
#B52EB5
secondary
#78C778
accent
#E34545
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B52EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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