#B531A7#B531A7

#B531A7 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.7% C 0.210 H 332.7°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#B531A7
RGBrgb(181, 49, 167)
HSLhsl(306, 57%, 45%)
HSVhsv(306, 73%, 71%)
CMYKcmyk(0%, 72.9%, 7.7%, 29%)
CIE-LABlab(45.38, 64.65, -34.97)
CIE-LCHlch(45.38, 73.50, 331.59°)
OKLaboklab(55.68% 0.1862 -0.096)
OKLCHoklch(55.68% 0.21 332.7)
XYZxyz(27.1295, 14.8127, 37.9820)
Luminance0.1481 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531A7 #31B53F
analogous
#8131B5 #B531A7 #B53165
triadic
#B531A7 #A7B531 #31A7B5
tetradic
#B531A7 #B58131 #31B53F #3165B5
square
#B531A7 #B58131 #31B53F #3165B5
split-complementary
#B531A7 #65B531 #31B581
monochromatic
#55174E #85247B #B531A7 #D053C3 #DD83D4

Accessibility & contrast

On white

5.30
#B531A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#B531A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B531A7
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531A7#FFFFFF#000000##FFFFFF
##B531A71.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5FAA
Deuteranopia (green-blind)
#5C72A4
Tritanopia (blue-blind)
#BD3F69
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b531a7;
/* rgb */ color: rgb(181, 49, 167);
/* oklch */ color: oklch(55.7% 0.210 332.7);
Tailwind
colors: {
  custom: {
    50: '#cf76c1',
    500: '#b531a7',
    950: '#000000',
  },
}
SCSS
$custom: #b531a7;
$custom-light: #cf76c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b531a7",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 306.364,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55678,
    "c": 0.20951,
    "h": 332.7
  },
  "luminance": 0.1481
}

Semantic roles & 50–950 ramp

primary
#B531A7
secondary
#7BC783
accent
#E15747
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B531A7

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

Preview Lab → · Contrast checker → · Palette generator →

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