#B531AB#B531AB

#B531AB is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.9% C 0.212 H 331.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#B531AB
RGBrgb(181, 49, 171)
HSLhsl(305, 57%, 45%)
HSVhsv(305, 73%, 71%)
CMYKcmyk(0%, 72.9%, 5.5%, 29%)
CIE-LABlab(45.58, 65.28, -37.01)
CIE-LCHlch(45.58, 75.04, 330.45°)
OKLaboklab(55.89% 0.1864 -0.1019)
OKLCHoklch(55.89% 0.212 331.3)
XYZxyz(27.5050, 14.9629, 39.9597)
Luminance0.1496 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531AB #31B53B
analogous
#7D31B5 #B531AB #B53169
triadic
#B531AB #ABB531 #31ABB5
tetradic
#B531AB #B57D31 #31B53B #3169B5
square
#B531AB #B57D31 #31B53B #3169B5
split-complementary
#B531AB #69B531 #31B57D
monochromatic
#551750 #85247D #B531AB #D053C7 #DD83D7

Accessibility & contrast

On white

5.26
#B531AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B531AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B531AB
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531AB#FFFFFF#000000##FFFFFF
##B531AB1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2660AE
Deuteranopia (green-blind)
#5A72A8
Tritanopia (blue-blind)
#BC416B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b531ab;
/* rgb */ color: rgb(181, 49, 171);
/* oklch */ color: oklch(55.9% 0.212 331.3);
Tailwind
colors: {
  custom: {
    50: '#cf76c4',
    500: '#b531ab',
    950: '#000000',
  },
}
SCSS
$custom: #b531ab;
$custom-light: #cf76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b531ab",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 304.545,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55893,
    "c": 0.21246,
    "h": 331.3
  },
  "luminance": 0.14961
}

Semantic roles & 50–950 ramp

primary
#B531AB
secondary
#7BC781
accent
#E15347
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B531AB

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

Preview Lab → · Contrast checker → · Palette generator →

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