#B531BB#B531BB

#B531BB is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.8% C 0.225 H 326.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#B531BB
RGBrgb(181, 49, 187)
HSLhsl(297, 58%, 46%)
HSVhsv(297, 74%, 73%)
CMYKcmyk(3.2%, 73.8%, 0%, 26.7%)
CIE-LABlab(46.46, 67.86, -45.04)
CIE-LCHlch(46.46, 81.45, 326.43°)
OKLaboklab(56.8% 0.1865 -0.1252)
OKLCHoklch(56.8% 0.225 326.1)
XYZxyz(29.1234, 15.6102, 48.4832)
Luminance0.1561 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531BB #37BB31
analogous
#7031BB #B531BB #BB317C
triadic
#B531BB #BBB531 #31BBB5
tetradic
#B531BB #BB7031 #37BB31 #317CBB
square
#B531BB #BB7031 #37BB31 #317CBB
split-complementary
#B531BB #7CBB31 #31BB70
monochromatic
#57185A #86248B #B531BB #CD56D3 #DC87E0

Accessibility & contrast

On white

5.10
#B531BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#B531BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B531BB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531BB#FFFFFF#000000##FFFFFF
##B531BB1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0364BF
Deuteranopia (green-blind)
#5174B8
Tritanopia (blue-blind)
#BA4874
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b531bb;
/* rgb */ color: rgb(181, 49, 187);
/* oklch */ color: oklch(56.8% 0.225 326.1);
Tailwind
colors: {
  custom: {
    50: '#cf77d0',
    500: '#b531bb',
    950: '#000000',
  },
}
SCSS
$custom: #b531bb;
$custom-light: #cf77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#b531bb",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 297.391,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56803,
    "c": 0.22461,
    "h": 326.1
  },
  "luminance": 0.15608
}

Semantic roles & 50–950 ramp

primary
#B531BB
secondary
#82C97F
accent
#E2464D
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B531BB

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

Preview Lab → · Contrast checker → · Palette generator →

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