#B831B1#B831B1

#B831B1 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.7% C 0.218 H 330.3°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#B831B1
RGBrgb(184, 49, 177)
HSLhsl(303, 58%, 46%)
HSVhsv(303, 73%, 72%)
CMYKcmyk(0%, 73.4%, 3.8%, 27.8%)
CIE-LABlab(46.40, 66.89, -39.24)
CIE-LCHlch(46.40, 77.55, 329.60°)
OKLaboklab(56.67% 0.1897 -0.1083)
OKLCHoklch(56.67% 0.218 330.3)
XYZxyz(28.8012, 15.5635, 43.0736)
Luminance0.1556 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831B1 #31B838
analogous
#7B31B8 #B831B1 #B8316D
triadic
#B831B1 #B1B831 #31B1B8
tetradic
#B831B1 #B87B31 #31B838 #316DB8
square
#B831B1 #B87B31 #31B838 #316DB8
split-complementary
#B831B1 #6DB831 #31B87B
monochromatic
#571754 #882483 #B831B1 #D255CB #DE85DA

Accessibility & contrast

On white

5.11
#B831B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#B831B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831B1
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831B1#FFFFFF#000000##FFFFFF
##B831B11.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2162B4
Deuteranopia (green-blind)
#5A74AE
Tritanopia (blue-blind)
#BF436E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b831b1;
/* rgb */ color: rgb(184, 49, 177);
/* oklch */ color: oklch(56.7% 0.218 330.3);
Tailwind
colors: {
  custom: {
    50: '#d177c9',
    500: '#b831b1',
    950: '#000000',
  },
}
SCSS
$custom: #b831b1;
$custom-light: #d177c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b831b1",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 303.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56674,
    "c": 0.21844,
    "h": 330.3
  },
  "luminance": 0.15561
}

Semantic roles & 50–950 ramp

primary
#B831B1
secondary
#7DC881
accent
#E14F47
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #B831B1

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

Preview Lab → · Contrast checker → · Palette generator →

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