#B531A9#B531A9

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

Color values

HEX#B531A9
RGBrgb(181, 49, 169)
HSLhsl(305, 57%, 45%)
HSVhsv(305, 73%, 71%)
CMYKcmyk(0%, 72.9%, 6.6%, 29%)
CIE-LABlab(45.48, 64.96, -35.99)
CIE-LCHlch(45.48, 74.27, 331.01°)
OKLaboklab(55.79% 0.1863 -0.099)
OKLCHoklch(55.79% 0.211 332)
XYZxyz(27.3159, 14.8872, 38.9633)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531A9 #31B53D
analogous
#7F31B5 #B531A9 #B53167
triadic
#B531A9 #A9B531 #31A9B5
tetradic
#B531A9 #B57F31 #31B53D #3167B5
square
#B531A9 #B57F31 #31B53D #3167B5
split-complementary
#B531A9 #67B531 #31B57F
monochromatic
#55174F #85247C #B531A9 #D053C5 #DD83D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B531A9#FFFFFF#000000##FFFFFF
##B531A91.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)
#2860AC
Deuteranopia (green-blind)
#5B72A6
Tritanopia (blue-blind)
#BD406A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b531a9;
/* rgb */ color: rgb(181, 49, 169);
/* oklch */ color: oklch(55.8% 0.211 332.0);
Tailwind
colors: {
  custom: {
    50: '#cf76c3',
    500: '#b531a9',
    950: '#000000',
  },
}
SCSS
$custom: #b531a9;
$custom-light: #cf76c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b531a9",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 305.455,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55785,
    "c": 0.21098,
    "h": 332
  },
  "luminance": 0.14885
}

Semantic roles & 50–950 ramp

primary
#B531A9
secondary
#7BC782
accent
#E15547
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B531A9

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

Preview Lab → · Contrast checker → · Palette generator →

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