#B531B9#B531B9

#B531B9 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.7% C 0.223 H 326.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B531B9
RGBrgb(181, 49, 185)
HSLhsl(298, 58%, 46%)
HSVhsv(298, 74%, 73%)
CMYKcmyk(2.2%, 73.5%, 0%, 27.5%)
CIE-LABlab(46.35, 67.53, -44.05)
CIE-LCHlch(46.35, 80.63, 326.89°)
OKLaboklab(56.68% 0.1865 -0.1223)
OKLCHoklch(56.68% 0.223 326.7)
XYZxyz(28.9108, 15.5252, 47.3635)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531B9 #35B931
analogous
#7131B9 #B531B9 #B93179
triadic
#B531B9 #B9B531 #31B9B5
tetradic
#B531B9 #B97131 #35B931 #3179B9
square
#B531B9 #B97131 #35B931 #3179B9
split-complementary
#B531B9 #79B931 #31B971
monochromatic
#561758 #862489 #B531B9 #CE55D2 #DC86DF

Accessibility & contrast

On white

5.12
#B531B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B531B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B531B9
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531B9#FFFFFF#000000##FFFFFF
##B531B91.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B63BD
Deuteranopia (green-blind)
#5374B6
Tritanopia (blue-blind)
#BA4873
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b531b9;
/* rgb */ color: rgb(181, 49, 185);
/* oklch */ color: oklch(56.7% 0.223 326.7);
Tailwind
colors: {
  custom: {
    50: '#cf77ce',
    500: '#b531b9',
    950: '#000000',
  },
}
SCSS
$custom: #b531b9;
$custom-light: #cf77ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b531b9",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 298.235,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56685,
    "c": 0.22306,
    "h": 326.7
  },
  "luminance": 0.15523
}

Semantic roles & 50–950 ramp

primary
#B531B9
secondary
#80C87D
accent
#E1464B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B531B9

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

Preview Lab → · Contrast checker → · Palette generator →

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