#B52EB9#B52EB9

#B52EB9 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.5% C 0.226 H 326.8°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#B52EB9
RGBrgb(181, 46, 185)
HSLhsl(298, 60%, 45%)
HSVhsv(298, 75%, 73%)
CMYKcmyk(2.2%, 75.1%, 0%, 27.5%)
CIE-LABlab(46.02, 68.47, -44.57)
CIE-LCHlch(46.02, 81.69, 326.94°)
OKLaboklab(56.45% 0.1892 -0.1238)
OKLCHoklch(56.45% 0.226 326.8)
XYZxyz(28.7895, 15.2826, 47.3230)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52EB9 #32B92E
analogous
#6F2EB9 #B52EB9 #B92E78
triadic
#B52EB9 #B9B52E #2EB9B5
tetradic
#B52EB9 #B96F2E #32B92E #2E78B9
square
#B52EB9 #B96F2E #32B92E #2E78B9
split-complementary
#B52EB9 #78B92E #2EB96F
monochromatic
#551657 #852288 #B52EB9 #D051D4 #DD82E0

Accessibility & contrast

On white

5.18
#B52EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#B52EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52EB9
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52EB9#FFFFFF#000000##FFFFFF
##B52EB91.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BD
Deuteranopia (green-blind)
#5173B6
Tritanopia (blue-blind)
#BA4672
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b52eb9;
/* rgb */ color: rgb(181, 46, 185);
/* oklch */ color: oklch(56.5% 0.226 326.8);
Tailwind
colors: {
  custom: {
    50: '#cf76ce',
    500: '#b52eb9',
    950: '#000000',
  },
}
SCSS
$custom: #b52eb9;
$custom-light: #cf76ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b52eb9",
  "rgb": {
    "r": 181,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 298.273,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56452,
    "c": 0.22608,
    "h": 326.8
  },
  "luminance": 0.15281
}

Semantic roles & 50–950 ramp

primary
#B52EB9
secondary
#7CC97A
accent
#E34449
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B52EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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