#B531A6#B531A6

#B531A6 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.6% C 0.209 H 333.1°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#B531A6
RGBrgb(181, 49, 166)
HSLhsl(307, 57%, 45%)
HSVhsv(307, 73%, 71%)
CMYKcmyk(0%, 72.9%, 8.3%, 29%)
CIE-LABlab(45.33, 64.50, -34.45)
CIE-LCHlch(45.33, 73.13, 331.89°)
OKLaboklab(55.63% 0.1862 -0.0945)
OKLCHoklch(55.63% 0.209 333.1)
XYZxyz(27.0375, 14.7758, 37.4970)
Luminance0.1477 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531A6 #31B540
analogous
#8231B5 #B531A6 #B53164
triadic
#B531A6 #A6B531 #31A6B5
tetradic
#B531A6 #B58231 #31B540 #3164B5
square
#B531A6 #B58231 #31B540 #3164B5
split-complementary
#B531A6 #64B531 #31B582
monochromatic
#55174E #85247A #B531A6 #D053C2 #DD83D3

Accessibility & contrast

On white

5.31
#B531A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B531A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B531A6
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531A6#FFFFFF#000000##FFFFFF
##B531A61.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5FA9
Deuteranopia (green-blind)
#5D72A3
Tritanopia (blue-blind)
#BD3E68
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b531a6;
/* rgb */ color: rgb(181, 49, 166);
/* oklch */ color: oklch(55.6% 0.209 333.1);
Tailwind
colors: {
  custom: {
    50: '#cf76c1',
    500: '#b531a6',
    950: '#000000',
  },
}
SCSS
$custom: #b531a6;
$custom-light: #cf76c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b531a6",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 306.818,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55625,
    "c": 0.20879,
    "h": 333.1
  },
  "luminance": 0.14774
}

Semantic roles & 50–950 ramp

primary
#B531A6
secondary
#7BC784
accent
#E15947
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B531A6

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

Preview Lab → · Contrast checker → · Palette generator →

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