#B831B2#B831B2

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

Color values

HEX#B831B2
RGBrgb(184, 49, 178)
HSLhsl(303, 58%, 46%)
HSVhsv(303, 73%, 72%)
CMYKcmyk(0%, 73.4%, 3.3%, 27.8%)
CIE-LABlab(46.45, 67.04, -39.74)
CIE-LCHlch(46.45, 77.94, 329.34°)
OKLaboklab(56.73% 0.1897 -0.1097)
OKLCHoklch(56.73% 0.219 330)
XYZxyz(28.9012, 15.6036, 43.6004)
Luminance0.1560 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831B2 #31B837
analogous
#7B31B8 #B831B2 #B8316E
triadic
#B831B2 #B2B831 #31B2B8
tetradic
#B831B2 #B87B31 #31B837 #316EB8
square
#B831B2 #B87B31 #31B837 #316EB8
split-complementary
#B831B2 #6EB831 #31B87B
monochromatic
#571754 #882483 #B831B2 #D255CC #DE85DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B831B2#FFFFFF#000000##FFFFFF
##B831B21.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)
#2062B6
Deuteranopia (green-blind)
#5974AF
Tritanopia (blue-blind)
#BF436F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b831b2;
/* rgb */ color: rgb(184, 49, 178);
/* oklch */ color: oklch(56.7% 0.219 330.0);
Tailwind
colors: {
  custom: {
    50: '#d177c9',
    500: '#b831b2',
    950: '#000000',
  },
}
SCSS
$custom: #b831b2;
$custom-light: #d177c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b831b2",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 302.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.5673,
    "c": 0.21918,
    "h": 330
  },
  "luminance": 0.15601
}

Semantic roles & 50–950 ramp

primary
#B831B2
secondary
#7DC880
accent
#E14E47
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #B831B2

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

Preview Lab → · Contrast checker → · Palette generator →

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