#B531B5#B531B5

#B531B5 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.5% C 0.220 H 328.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B531B5
RGBrgb(181, 49, 181)
HSLhsl(300, 57%, 45%)
HSVhsv(300, 73%, 71%)
CMYKcmyk(0%, 72.9%, 0%, 29%)
CIE-LABlab(46.12, 66.87, -42.06)
CIE-LCHlch(46.12, 79.00, 327.83°)
OKLaboklab(56.45% 0.1866 -0.1165)
OKLCHoklch(56.45% 0.22 328)
XYZxyz(28.4945, 15.3586, 45.1708)
Luminance0.1536 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531B5 #31B531
analogous
#7331B5 #B531B5 #B53173
triadic
#B531B5 #B5B531 #31B5B5
tetradic
#B531B5 #B57331 #31B531 #3173B5
square
#B531B5 #B57331 #31B531 #3173B5
split-complementary
#B531B5 #73B531 #31B573
monochromatic
#551755 #852485 #B531B5 #D053D0 #DD83DD

Accessibility & contrast

On white

5.16
#B531B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B531B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B531B5
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531B5#FFFFFF#000000##FFFFFF
##B531B51.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1662B9
Deuteranopia (green-blind)
#5573B2
Tritanopia (blue-blind)
#BB4671
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b531b5;
/* rgb */ color: rgb(181, 49, 181);
/* oklch */ color: oklch(56.5% 0.220 328.0);
Tailwind
colors: {
  custom: {
    50: '#cf77cc',
    500: '#b531b5',
    950: '#000000',
  },
}
SCSS
$custom: #b531b5;
$custom-light: #cf77cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b531b5",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 300,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56453,
    "c": 0.21999,
    "h": 328
  },
  "luminance": 0.15357
}

Semantic roles & 50–950 ramp

primary
#B531B5
secondary
#7BC77B
accent
#E14747
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B531B5

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

Preview Lab → · Contrast checker → · Palette generator →

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