#B531BA#B531BA

#B531BA is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.7% C 0.224 H 326.4°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#B531BA
RGBrgb(181, 49, 186)
HSLhsl(298, 58%, 46%)
HSVhsv(298, 74%, 73%)
CMYKcmyk(2.7%, 73.7%, 0%, 27.1%)
CIE-LABlab(46.40, 67.70, -44.54)
CIE-LCHlch(46.40, 81.04, 326.66°)
OKLaboklab(56.74% 0.1865 -0.1238)
OKLCHoklch(56.74% 0.224 326.4)
XYZxyz(29.0168, 15.5675, 47.9214)
Luminance0.1557 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531BA #36BA31
analogous
#7031BA #B531BA #BA317A
triadic
#B531BA #BAB531 #31BAB5
tetradic
#B531BA #BA7031 #36BA31 #317ABA
square
#B531BA #BA7031 #36BA31 #317ABA
split-complementary
#B531BA #7ABA31 #31BA70
monochromatic
#571759 #86248A #B531BA #CE56D2 #DC86DF

Accessibility & contrast

On white

5.11
#B531BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#B531BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B531BA
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531BA#FFFFFF#000000##FFFFFF
##B531BA1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0763BE
Deuteranopia (green-blind)
#5274B7
Tritanopia (blue-blind)
#BA4873
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b531ba;
/* rgb */ color: rgb(181, 49, 186);
/* oklch */ color: oklch(56.7% 0.224 326.4);
Tailwind
colors: {
  custom: {
    50: '#cf77cf',
    500: '#b531ba',
    950: '#000000',
  },
}
SCSS
$custom: #b531ba;
$custom-light: #cf77cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b531ba",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 297.81,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56744,
    "c": 0.22384,
    "h": 326.4
  },
  "luminance": 0.15566
}

Semantic roles & 50–950 ramp

primary
#B531BA
secondary
#81C97E
accent
#E2464C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B531BA

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

Preview Lab → · Contrast checker → · Palette generator →

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