#B831B4#B831B4

#B831B4 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.8% C 0.221 H 329.3°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#B831B4
RGBrgb(184, 49, 180)
HSLhsl(302, 58%, 46%)
HSVhsv(302, 73%, 72%)
CMYKcmyk(0%, 73.4%, 2.2%, 27.8%)
CIE-LABlab(46.56, 67.36, -40.75)
CIE-LCHlch(46.56, 78.73, 328.83°)
OKLaboklab(56.84% 0.1898 -0.1126)
OKLCHoklch(56.84% 0.221 329.3)
XYZxyz(29.1035, 15.6845, 44.6657)
Luminance0.1568 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831B4 #31B835
analogous
#7831B8 #B831B4 #B83170
triadic
#B831B4 #B4B831 #31B4B8
tetradic
#B831B4 #B87831 #31B835 #3170B8
square
#B831B4 #B87831 #31B835 #3170B8
split-complementary
#B831B4 #70B831 #31B878
monochromatic
#571755 #882485 #B831B4 #D255CE #DE85DC

Accessibility & contrast

On white

5.08
#B831B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#B831B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831B4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831B4#FFFFFF#000000##FFFFFF
##B831B41.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C63B8
Deuteranopia (green-blind)
#5875B1
Tritanopia (blue-blind)
#BE4470
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b831b4;
/* rgb */ color: rgb(184, 49, 180);
/* oklch */ color: oklch(56.8% 0.221 329.3);
Tailwind
colors: {
  custom: {
    50: '#d177cb',
    500: '#b831b4',
    950: '#000000',
  },
}
SCSS
$custom: #b831b4;
$custom-light: #d177cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b831b4",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 301.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56842,
    "c": 0.22067,
    "h": 329.3
  },
  "luminance": 0.15682
}

Semantic roles & 50–950 ramp

primary
#B831B4
secondary
#7DC87F
accent
#E14B47
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #B831B4

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

Preview Lab → · Contrast checker → · Palette generator →

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