#B52EA6#B52EA6

#B52EA6 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.4% C 0.212 H 333.1°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B52EA6
RGBrgb(181, 46, 166)
HSLhsl(307, 59%, 45%)
HSVhsv(307, 75%, 71%)
CMYKcmyk(0%, 74.6%, 8.3%, 29%)
CIE-LABlab(44.99, 65.46, -34.99)
CIE-LCHlch(44.99, 74.23, 331.88°)
OKLaboklab(55.38% 0.189 -0.096)
OKLCHoklch(55.38% 0.212 333.1)
XYZxyz(26.9161, 14.5332, 37.4566)
Luminance0.1453 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52EA6 #2EB53D
analogous
#812EB5 #B52EA6 #B52E62
triadic
#B52EA6 #A6B52E #2EA6B5
tetradic
#B52EA6 #B5812E #2EB53D #2E62B5
square
#B52EA6 #B5812E #2EB53D #2E62B5
split-complementary
#B52EA6 #62B52E #2EB581
monochromatic
#53154C #842279 #B52EA6 #D24EC3 #DE7FD4

Accessibility & contrast

On white

5.38
#B52EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#B52EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52EA6
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52EA6#FFFFFF#000000##FFFFFF
##B52EA61.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285EA9
Deuteranopia (green-blind)
#5C71A3
Tritanopia (blue-blind)
#BD3C67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b52ea6;
/* rgb */ color: rgb(181, 46, 166);
/* oklch */ color: oklch(55.4% 0.212 333.1);
Tailwind
colors: {
  custom: {
    50: '#cf75c1',
    500: '#b52ea6',
    950: '#000000',
  },
}
SCSS
$custom: #b52ea6;
$custom-light: #cf75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b52ea6",
  "rgb": {
    "r": 181,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 306.667,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55382,
    "c": 0.21198,
    "h": 333.1
  },
  "luminance": 0.14531
}

Semantic roles & 50–950 ramp

primary
#B52EA6
secondary
#78C780
accent
#E35745
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B52EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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