#B531AC#B531AC

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

Color values

HEX#B531AC
RGBrgb(181, 49, 172)
HSLhsl(304, 57%, 45%)
HSVhsv(304, 73%, 71%)
CMYKcmyk(0%, 72.9%, 5%, 29%)
CIE-LABlab(45.64, 65.43, -37.52)
CIE-LCHlch(45.64, 75.43, 330.17°)
OKLaboklab(55.95% 0.1865 -0.1034)
OKLCHoklch(55.95% 0.213 331)
XYZxyz(27.6007, 15.0011, 40.4635)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531AC #31B53A
analogous
#7C31B5 #B531AC #B5316A
triadic
#B531AC #ACB531 #31ACB5
tetradic
#B531AC #B57C31 #31B53A #316AB5
square
#B531AC #B57C31 #31B53A #316AB5
split-complementary
#B531AC #6AB531 #31B57C
monochromatic
#551750 #85247E #B531AC #D053C8 #DD83D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B531AC#FFFFFF#000000##FFFFFF
##B531AC1.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)
#2560AF
Deuteranopia (green-blind)
#5A72A9
Tritanopia (blue-blind)
#BC416C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b531ac;
/* rgb */ color: rgb(181, 49, 172);
/* oklch */ color: oklch(55.9% 0.213 331.0);
Tailwind
colors: {
  custom: {
    50: '#cf76c5',
    500: '#b531ac',
    950: '#000000',
  },
}
SCSS
$custom: #b531ac;
$custom-light: #cf76c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b531ac",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 304.091,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55948,
    "c": 0.2132,
    "h": 331
  },
  "luminance": 0.14999
}

Semantic roles & 50–950 ramp

primary
#B531AC
secondary
#7BC780
accent
#E15247
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B531AC

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

Preview Lab → · Contrast checker → · Palette generator →

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