#B531B8#B531B8

#B531B8 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.6% C 0.222 H 327.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#B531B8
RGBrgb(181, 49, 184)
HSLhsl(299, 58%, 46%)
HSVhsv(299, 73%, 72%)
CMYKcmyk(1.6%, 73.4%, 0%, 27.8%)
CIE-LABlab(46.29, 67.37, -43.55)
CIE-LCHlch(46.29, 80.22, 327.12°)
OKLaboklab(56.63% 0.1866 -0.1209)
OKLCHoklch(56.63% 0.222 327.1)
XYZxyz(28.8056, 15.4831, 46.8094)
Luminance0.1548 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B531B8 #34B831
analogous
#7231B8 #B531B8 #B83177
triadic
#B531B8 #B8B531 #31B8B5
tetradic
#B531B8 #B87231 #34B831 #3177B8
square
#B531B8 #B87231 #34B831 #3177B8
split-complementary
#B531B8 #77B831 #31B872
monochromatic
#561757 #852488 #B531B8 #CF55D2 #DC85DE

Accessibility & contrast

On white

5.13
#B531B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B531B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B531B8
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B531B8#FFFFFF#000000##FFFFFF
##B531B81.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E63BC
Deuteranopia (green-blind)
#5373B5
Tritanopia (blue-blind)
#BA4772
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b531b8;
/* rgb */ color: rgb(181, 49, 184);
/* oklch */ color: oklch(56.6% 0.222 327.1);
Tailwind
colors: {
  custom: {
    50: '#cf77ce',
    500: '#b531b8',
    950: '#000000',
  },
}
SCSS
$custom: #b531b8;
$custom-light: #cf77ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b531b8",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 298.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56627,
    "c": 0.22228,
    "h": 327.1
  },
  "luminance": 0.15481
}

Semantic roles & 50–950 ramp

primary
#B531B8
secondary
#7FC87D
accent
#E1474A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B531B8

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

Preview Lab → · Contrast checker → · Palette generator →

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