#B52EB2#B52EB2

#B52EB2 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.221 H 329.0°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#B52EB2
RGBrgb(181, 46, 178)
HSLhsl(301, 59%, 45%)
HSVhsv(301, 75%, 71%)
CMYKcmyk(0%, 74.6%, 1.7%, 29%)
CIE-LABlab(45.63, 67.33, -41.08)
CIE-LCHlch(45.63, 78.88, 328.61°)
OKLaboklab(56.05% 0.1893 -0.1137)
OKLCHoklch(56.05% 0.221 329)
XYZxyz(28.0687, 14.9942, 43.5267)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52EB2 #2EB531
analogous
#742EB5 #B52EB2 #B52E6F
triadic
#B52EB2 #B2B52E #2EB2B5
tetradic
#B52EB2 #B5742E #2EB531 #2E6FB5
square
#B52EB2 #B5742E #2EB531 #2E6FB5
split-complementary
#B52EB2 #6FB52E #2EB574
monochromatic
#531552 #842282 #B52EB2 #D24ECF #DE7FDC

Accessibility & contrast

On white

5.25
#B52EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#B52EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52EB2
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52EB2#FFFFFF#000000##FFFFFF
##B52EB21.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1661B6
Deuteranopia (green-blind)
#5572AF
Tritanopia (blue-blind)
#BB426E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52eb2;
/* rgb */ color: rgb(181, 46, 178);
/* oklch */ color: oklch(56.0% 0.221 329.0);
Tailwind
colors: {
  custom: {
    50: '#cf75c9',
    500: '#b52eb2',
    950: '#000000',
  },
}
SCSS
$custom: #b52eb2;
$custom-light: #cf75c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b52eb2",
  "rgb": {
    "r": 181,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 301.333,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.56046,
    "c": 0.22079,
    "h": 329
  },
  "luminance": 0.14992
}

Semantic roles & 50–950 ramp

primary
#B52EB2
secondary
#78C779
accent
#E34945
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B52EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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