#B531A8#B531A8

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

Color values

HEX#B531A8
RGBrgb(181, 49, 168)
HSLhsl(306, 57%, 45%)
HSVhsv(306, 73%, 71%)
CMYKcmyk(0%, 72.9%, 7.2%, 29%)
CIE-LABlab(45.43, 64.81, -35.48)
CIE-LCHlch(45.43, 73.89, 331.30°)
OKLaboklab(55.73% 0.1863 -0.0975)
OKLCHoklch(55.73% 0.21 332.4)
XYZxyz(27.2223, 14.8498, 38.4707)
Luminance0.1485 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531A8 #31B53E
analogous
#8031B5 #B531A8 #B53166
triadic
#B531A8 #A8B531 #31A8B5
tetradic
#B531A8 #B58031 #31B53E #3166B5
square
#B531A8 #B58031 #31B53E #3166B5
split-complementary
#B531A8 #66B531 #31B580
monochromatic
#55174F #85247B #B531A8 #D053C4 #DD83D5

Accessibility & contrast

On white

5.29
#B531A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#B531A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B531A8
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531A8#FFFFFF#000000##FFFFFF
##B531A81.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2960AB
Deuteranopia (green-blind)
#5C72A5
Tritanopia (blue-blind)
#BD3F69
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b531a8;
/* rgb */ color: rgb(181, 49, 168);
/* oklch */ color: oklch(55.7% 0.210 332.4);
Tailwind
colors: {
  custom: {
    50: '#cf76c2',
    500: '#b531a8',
    950: '#000000',
  },
}
SCSS
$custom: #b531a8;
$custom-light: #cf76c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b531a8",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 305.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55731,
    "c": 0.21025,
    "h": 332.4
  },
  "luminance": 0.14848
}

Semantic roles & 50–950 ramp

primary
#B531A8
secondary
#7BC783
accent
#E15647
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B531A8

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

Preview Lab → · Contrast checker → · Palette generator →

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