#B52EB1#B52EB1

#B52EB1 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.220 H 329.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#B52EB1
RGBrgb(181, 46, 177)
HSLhsl(302, 59%, 45%)
HSVhsv(302, 75%, 71%)
CMYKcmyk(0%, 74.6%, 2.2%, 29%)
CIE-LABlab(45.57, 67.17, -40.58)
CIE-LCHlch(45.57, 78.48, 328.87°)
OKLaboklab(55.99% 0.1893 -0.1122)
OKLCHoklch(55.99% 0.22 329.3)
XYZxyz(27.9687, 14.9542, 42.9998)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52EB1 #2EB532
analogous
#762EB5 #B52EB1 #B52E6E
triadic
#B52EB1 #B1B52E #2EB1B5
tetradic
#B52EB1 #B5762E #2EB532 #2E6EB5
square
#B52EB1 #B5762E #2EB532 #2E6EB5
split-complementary
#B52EB1 #6EB52E #2EB576
monochromatic
#531552 #842281 #B52EB1 #D24ECE #DE7FDC

Accessibility & contrast

On white

5.26
#B52EB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B52EB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52EB1
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52EB1#FFFFFF#000000##FFFFFF
##B52EB11.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1860B5
Deuteranopia (green-blind)
#5672AE
Tritanopia (blue-blind)
#BB426E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52eb1;
/* rgb */ color: rgb(181, 46, 177);
/* oklch */ color: oklch(56.0% 0.220 329.3);
Tailwind
colors: {
  custom: {
    50: '#cf75c9',
    500: '#b52eb1',
    950: '#000000',
  },
}
SCSS
$custom: #b52eb1;
$custom-light: #cf75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b52eb1",
  "rgb": {
    "r": 181,
    "g": 46,
    "b": 177
  },
  "hsl": {
    "h": 301.778,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55989,
    "c": 0.22004,
    "h": 329.3
  },
  "luminance": 0.14952
}

Semantic roles & 50–950 ramp

primary
#B52EB1
secondary
#78C77A
accent
#E34A45
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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