#B831B3#B831B3

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

Color values

HEX#B831B3
RGBrgb(184, 49, 179)
HSLhsl(302, 58%, 46%)
HSVhsv(302, 73%, 72%)
CMYKcmyk(0%, 73.4%, 2.7%, 27.8%)
CIE-LABlab(46.50, 67.20, -40.25)
CIE-LCHlch(46.50, 78.33, 329.08°)
OKLaboklab(56.79% 0.1897 -0.1112)
OKLCHoklch(56.79% 0.22 329.6)
XYZxyz(29.0020, 15.6439, 44.1312)
Luminance0.1564 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831B3 #31B836
analogous
#7931B8 #B831B3 #B8316F
triadic
#B831B3 #B3B831 #31B3B8
tetradic
#B831B3 #B87931 #31B836 #316FB8
square
#B831B3 #B87931 #31B836 #316FB8
split-complementary
#B831B3 #6FB831 #31B879
monochromatic
#571755 #882484 #B831B3 #D255CD #DE85DB

Accessibility & contrast

On white

5.09
#B831B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#B831B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831B3
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831B3#FFFFFF#000000##FFFFFF
##B831B31.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E63B7
Deuteranopia (green-blind)
#5975B0
Tritanopia (blue-blind)
#BF4470
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b831b3;
/* rgb */ color: rgb(184, 49, 179);
/* oklch */ color: oklch(56.8% 0.220 329.6);
Tailwind
colors: {
  custom: {
    50: '#d177ca',
    500: '#b831b3',
    950: '#000000',
  },
}
SCSS
$custom: #b831b3;
$custom-light: #d177ca;
$custom-dark: #000000;
JSON
{
  "hex": "#b831b3",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 302.222,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56786,
    "c": 0.21992,
    "h": 329.6
  },
  "luminance": 0.15642
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B831B3

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

Preview Lab → · Contrast checker → · Palette generator →

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