#B531AA#B531AA

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

Color values

HEX#B531AA
RGBrgb(181, 49, 170)
HSLhsl(305, 57%, 45%)
HSVhsv(305, 73%, 71%)
CMYKcmyk(0%, 72.9%, 6.1%, 29%)
CIE-LABlab(45.53, 65.12, -36.50)
CIE-LCHlch(45.53, 74.65, 330.73°)
OKLaboklab(55.84% 0.1864 -0.1004)
OKLCHoklch(55.84% 0.212 331.7)
XYZxyz(27.4101, 14.9249, 39.4596)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531AA #31B53C
analogous
#7E31B5 #B531AA #B53168
triadic
#B531AA #AAB531 #31AAB5
tetradic
#B531AA #B57E31 #31B53C #3168B5
square
#B531AA #B57E31 #31B53C #3168B5
split-complementary
#B531AA #68B531 #31B57E
monochromatic
#551750 #85247D #B531AA #D053C6 #DD83D6

Accessibility & contrast

On white

5.27
#B531AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B531AA
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531AA#FFFFFF#000000##FFFFFF
##B531AA1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2760AD
Deuteranopia (green-blind)
#5B72A7
Tritanopia (blue-blind)
#BD406B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b531aa;
/* rgb */ color: rgb(181, 49, 170);
/* oklch */ color: oklch(55.8% 0.212 331.7);
Tailwind
colors: {
  custom: {
    50: '#cf76c4',
    500: '#b531aa',
    950: '#000000',
  },
}
SCSS
$custom: #b531aa;
$custom-light: #cf76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b531aa",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 305,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55839,
    "c": 0.21172,
    "h": 331.7
  },
  "luminance": 0.14923
}

Semantic roles & 50–950 ramp

primary
#B531AA
secondary
#7BC781
accent
#E15447
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A12
muted
#837C81

Preview Lab

Preview with #B531AA

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

Preview Lab → · Contrast checker → · Palette generator →

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