#B52EA7#B52EA7

#B52EA7 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.4% C 0.213 H 332.7°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#B52EA7
RGBrgb(181, 46, 167)
HSLhsl(306, 59%, 45%)
HSVhsv(306, 75%, 71%)
CMYKcmyk(0%, 74.6%, 7.7%, 29%)
CIE-LABlab(45.04, 65.62, -35.50)
CIE-LCHlch(45.04, 74.60, 331.59°)
OKLaboklab(55.44% 0.189 -0.0975)
OKLCHoklch(55.44% 0.213 332.7)
XYZxyz(27.0082, 14.5700, 37.9416)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52EA7 #2EB53C
analogous
#7F2EB5 #B52EA7 #B52E64
triadic
#B52EA7 #A7B52E #2EA7B5
tetradic
#B52EA7 #B57F2E #2EB53C #2E64B5
square
#B52EA7 #B57F2E #2EB53C #2E64B5
split-complementary
#B52EA7 #64B52E #2EB57F
monochromatic
#53154D #84227A #B52EA7 #D24EC4 #DE7FD5

Accessibility & contrast

On white

5.37
#B52EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B52EA7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52EA7#FFFFFF#000000##FFFFFF
##B52EA71.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275EAA
Deuteranopia (green-blind)
#5B71A4
Tritanopia (blue-blind)
#BD3D68
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b52ea7;
/* rgb */ color: rgb(181, 46, 167);
/* oklch */ color: oklch(55.4% 0.213 332.7);
Tailwind
colors: {
  custom: {
    50: '#cf75c1',
    500: '#b52ea7',
    950: '#000000',
  },
}
SCSS
$custom: #b52ea7;
$custom-light: #cf75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b52ea7",
  "rgb": {
    "r": 181,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 306.222,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.55436,
    "c": 0.2127,
    "h": 332.7
  },
  "luminance": 0.14568
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B52EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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