#B831AB#B831AB

#B831AB is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.3% C 0.214 H 332.3°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#B831AB
RGBrgb(184, 49, 171)
HSLhsl(306, 58%, 46%)
HSVhsv(306, 73%, 72%)
CMYKcmyk(0%, 73.4%, 7.1%, 27.8%)
CIE-LABlab(46.08, 65.95, -36.19)
CIE-LCHlch(46.08, 75.23, 331.24°)
OKLaboklab(56.35% 0.1895 -0.0995)
OKLCHoklch(56.35% 0.214 332.3)
XYZxyz(28.2162, 15.3296, 39.9930)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831AB #31B83E
analogous
#8131B8 #B831AB #B83167
triadic
#B831AB #ABB831 #31ABB8
tetradic
#B831AB #B88131 #31B83E #3167B8
square
#B831AB #B88131 #31B83E #3167B8
split-complementary
#B831AB #67B831 #31B881
monochromatic
#571751 #88247E #B831AB #D255C6 #DE85D6

Accessibility & contrast

On white

5.17
#B831AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B831AB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831AB#FFFFFF#000000##FFFFFF
##B831AB1.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2961AE
Deuteranopia (green-blind)
#5D74A8
Tritanopia (blue-blind)
#C0406B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b831ab;
/* rgb */ color: rgb(184, 49, 171);
/* oklch */ color: oklch(56.3% 0.214 332.3);
Tailwind
colors: {
  custom: {
    50: '#d177c4',
    500: '#b831ab',
    950: '#000000',
  },
}
SCSS
$custom: #b831ab;
$custom-light: #d177c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b831ab",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 305.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56347,
    "c": 0.21402,
    "h": 332.3
  },
  "luminance": 0.15327
}

Semantic roles & 50–950 ramp

primary
#B831AB
secondary
#7DC884
accent
#E15647
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #B831AB

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

Preview Lab → · Contrast checker → · Palette generator →

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