#B52AB7#B52AB7

#B52AB7 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 56.0% C 0.228 H 327.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#B52AB7
RGBrgb(181, 42, 183)
HSLhsl(299, 63%, 44%)
HSVhsv(299, 77%, 72%)
CMYKcmyk(1.1%, 77%, 0%, 28.2%)
CIE-LABlab(45.50, 69.31, -44.22)
CIE-LCHlch(45.50, 82.22, 327.46°)
OKLaboklab(56.04% 0.1925 -0.1228)
OKLCHoklch(56.04% 0.228 327.5)
XYZxyz(28.4309, 14.9007, 46.1692)
Luminance0.1490 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B52AB7 #2CB72A
analogous
#6F2AB7 #B52AB7 #B72A73
triadic
#B52AB7 #B7B52A #2AB7B5
tetradic
#B52AB7 #B76F2A #2CB72A #2A73B7
square
#B52AB7 #B76F2A #2CB72A #2A73B7
split-complementary
#B52AB7 #73B72A #2AB76F
monochromatic
#531353 #841F85 #B52AB7 #D349D5 #DF7BE1

Accessibility & contrast

On white

5.28
#B52AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B52AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B52AB7
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B52AB7#FFFFFF#000000##FFFFFF
##B52AB71.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#5172B4
Tritanopia (blue-blind)
#BA4270
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b52ab7;
/* rgb */ color: rgb(181, 42, 183);
/* oklch */ color: oklch(56.0% 0.228 327.5);
Tailwind
colors: {
  custom: {
    50: '#cf74cd',
    500: '#b52ab7',
    950: '#000000',
  },
}
SCSS
$custom: #b52ab7;
$custom-light: #cf74cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b52ab7",
  "rgb": {
    "r": 181,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 299.149,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.56044,
    "c": 0.22834,
    "h": 327.5
  },
  "luminance": 0.14899
}

Semantic roles & 50–950 ramp

primary
#B52AB7
secondary
#75C974
accent
#E64244
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140913
muted
#837B82

Preview Lab

Preview with #B52AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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