#B52EB8#B52EB8

#B52EB8 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.4% C 0.225 H 327.1°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#B52EB8
RGBrgb(181, 46, 184)
HSLhsl(299, 60%, 45%)
HSVhsv(299, 75%, 72%)
CMYKcmyk(1.6%, 75%, 0%, 27.8%)
CIE-LABlab(45.96, 68.30, -44.07)
CIE-LCHlch(45.96, 81.29, 327.17°)
OKLaboklab(56.39% 0.1892 -0.1224)
OKLCHoklch(56.39% 0.225 327.1)
XYZxyz(28.6843, 15.2405, 46.7690)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52EB8 #31B82E
analogous
#702EB8 #B52EB8 #B82E76
triadic
#B52EB8 #B8B52E #2EB8B5
tetradic
#B52EB8 #B8702E #31B82E #2E76B8
square
#B52EB8 #B8702E #31B82E #2E76B8
split-complementary
#B52EB8 #76B82E #2EB870
monochromatic
#551656 #852287 #B52EB8 #D050D3 #DD81DF

Accessibility & contrast

On white

5.19
#B52EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#B52EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52EB8
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52EB8#FFFFFF#000000##FFFFFF
##B52EB81.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0362BC
Deuteranopia (green-blind)
#5273B5
Tritanopia (blue-blind)
#BA4572
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b52eb8;
/* rgb */ color: rgb(181, 46, 184);
/* oklch */ color: oklch(56.4% 0.225 327.1);
Tailwind
colors: {
  custom: {
    50: '#cf76ce',
    500: '#b52eb8',
    950: '#000000',
  },
}
SCSS
$custom: #b52eb8;
$custom-light: #cf76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b52eb8",
  "rgb": {
    "r": 181,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 298.696,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56393,
    "c": 0.22532,
    "h": 327.1
  },
  "luminance": 0.15238
}

Semantic roles & 50–950 ramp

primary
#B52EB8
secondary
#7BC879
accent
#E34548
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B52EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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