#B531A2#B531A2

#B531A2 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.4% C 0.206 H 334.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#B531A2
RGBrgb(181, 49, 162)
HSLhsl(309, 57%, 45%)
HSVhsv(309, 73%, 71%)
CMYKcmyk(0%, 72.9%, 10.5%, 29%)
CIE-LABlab(45.13, 63.89, -32.39)
CIE-LCHlch(45.13, 71.63, 333.12°)
OKLaboklab(55.42% 0.1859 -0.0886)
OKLCHoklch(55.42% 0.206 334.5)
XYZxyz(26.6762, 14.6313, 35.5946)
Luminance0.1463 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531A2 #31B544
analogous
#8631B5 #B531A2 #B53160
triadic
#B531A2 #A2B531 #31A2B5
tetradic
#B531A2 #B58631 #31B544 #3160B5
square
#B531A2 #B58631 #31B544 #3160B5
split-complementary
#B531A2 #60B531 #31B586
monochromatic
#55174C #852477 #B531A2 #D053BE #DD83D0

Accessibility & contrast

On white

5.35
#B531A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B531A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B531A2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531A2#FFFFFF#000000##FFFFFF
##B531A21.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5EA5
Deuteranopia (green-blind)
#5F729F
Tritanopia (blue-blind)
#BE3C66
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b531a2;
/* rgb */ color: rgb(181, 49, 162);
/* oklch */ color: oklch(55.4% 0.206 334.5);
Tailwind
colors: {
  custom: {
    50: '#cf76be',
    500: '#b531a2',
    950: '#000000',
  },
}
SCSS
$custom: #b531a2;
$custom-light: #cf76be;
$custom-dark: #000000;
JSON
{
  "hex": "#b531a2",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 308.636,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55415,
    "c": 0.20591,
    "h": 334.5
  },
  "luminance": 0.14629
}

Semantic roles & 50–950 ramp

primary
#B531A2
secondary
#7BC786
accent
#E15D47
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B531A2

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

Preview Lab → · Contrast checker → · Palette generator →

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