#B52EB6#B52EB6

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

Color values

HEX#B52EB6
RGBrgb(181, 46, 182)
HSLhsl(300, 60%, 45%)
HSVhsv(300, 75%, 71%)
CMYKcmyk(0.5%, 74.7%, 0%, 28.6%)
CIE-LABlab(45.85, 67.98, -43.08)
CIE-LCHlch(45.85, 80.48, 327.64°)
OKLaboklab(56.28% 0.1892 -0.1195)
OKLCHoklch(56.28% 0.224 327.7)
XYZxyz(28.4762, 15.1572, 45.6727)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52EB6 #2FB62E
analogous
#712EB6 #B52EB6 #B62E73
triadic
#B52EB6 #B6B52E #2EB6B5
tetradic
#B52EB6 #B6712E #2FB62E #2E73B6
square
#B52EB6 #B6712E #2FB62E #2E73B6
split-complementary
#B52EB6 #73B62E #2EB671
monochromatic
#541554 #842285 #B52EB6 #D14FD2 #DE80DF

Accessibility & contrast

On white

5.21
#B52EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B52EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52EB6
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52EB6#FFFFFF#000000##FFFFFF
##B52EB61.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B61BA
Deuteranopia (green-blind)
#5373B3
Tritanopia (blue-blind)
#BB4470
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b52eb6;
/* rgb */ color: rgb(181, 46, 182);
/* oklch */ color: oklch(56.3% 0.224 327.7);
Tailwind
colors: {
  custom: {
    50: '#cf76cc',
    500: '#b52eb6',
    950: '#000000',
  },
}
SCSS
$custom: #b52eb6;
$custom-light: #cf76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b52eb6",
  "rgb": {
    "r": 181,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 299.559,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56276,
    "c": 0.22379,
    "h": 327.7
  },
  "luminance": 0.15155
}

Semantic roles & 50–950 ramp

primary
#B52EB6
secondary
#79C878
accent
#E34546
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B52EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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