#B52EA1#B52EA1

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

Color values

HEX#B52EA1
RGBrgb(181, 46, 161)
HSLhsl(309, 59%, 45%)
HSVhsv(309, 75%, 71%)
CMYKcmyk(0%, 74.6%, 11%, 29%)
CIE-LABlab(44.74, 64.71, -32.40)
CIE-LCHlch(44.74, 72.37, 333.40°)
OKLaboklab(55.12% 0.1887 -0.0886)
OKLCHoklch(55.12% 0.208 334.8)
XYZxyz(26.4664, 14.3533, 35.0879)
Luminance0.1435 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52EA1 #2EB542
analogous
#862EB5 #B52EA1 #B52E5E
triadic
#B52EA1 #A1B52E #2EA1B5
tetradic
#B52EA1 #B5862E #2EB542 #2E5EB5
square
#B52EA1 #B5862E #2EB542 #2E5EB5
split-complementary
#B52EA1 #5EB52E #2EB586
monochromatic
#53154A #842276 #B52EA1 #D24EBF #DE7FD0

Accessibility & contrast

On white

5.43
#B52EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B52EA1
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52EA1#FFFFFF#000000##FFFFFF
##B52EA11.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5DA4
Deuteranopia (green-blind)
#5E719E
Tritanopia (blue-blind)
#BE3A65
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52ea1;
/* rgb */ color: rgb(181, 46, 161);
/* oklch */ color: oklch(55.1% 0.208 334.8);
Tailwind
colors: {
  custom: {
    50: '#cf75bd',
    500: '#b52ea1',
    950: '#000000',
  },
}
SCSS
$custom: #b52ea1;
$custom-light: #cf75bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b52ea1",
  "rgb": {
    "r": 181,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 308.889,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55118,
    "c": 0.20843,
    "h": 334.8
  },
  "luminance": 0.14351
}

Semantic roles & 50–950 ramp

primary
#B52EA1
secondary
#78C783
accent
#E35C45
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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