#B831B0#B831B0

#B831B0 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.6% C 0.218 H 330.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B831B0
RGBrgb(184, 49, 176)
HSLhsl(304, 58%, 46%)
HSVhsv(304, 73%, 72%)
CMYKcmyk(0%, 73.4%, 4.3%, 27.8%)
CIE-LABlab(46.34, 66.73, -38.73)
CIE-LCHlch(46.34, 77.15, 329.87°)
OKLaboklab(56.62% 0.1897 -0.1068)
OKLCHoklch(56.62% 0.218 330.6)
XYZxyz(28.7019, 15.5238, 42.5506)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831B0 #31B839
analogous
#7D31B8 #B831B0 #B8316C
triadic
#B831B0 #B0B831 #31B0B8
tetradic
#B831B0 #B87D31 #31B839 #316CB8
square
#B831B0 #B87D31 #31B839 #316CB8
split-complementary
#B831B0 #6CB831 #31B87D
monochromatic
#571754 #882482 #B831B0 #D255CA #DE85D9

Accessibility & contrast

On white

5.12
#B831B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B831B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831B0
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831B0#FFFFFF#000000##FFFFFF
##B831B01.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2262B3
Deuteranopia (green-blind)
#5B74AD
Tritanopia (blue-blind)
#BF426E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b831b0;
/* rgb */ color: rgb(184, 49, 176);
/* oklch */ color: oklch(56.6% 0.218 330.6);
Tailwind
colors: {
  custom: {
    50: '#d177c8',
    500: '#b831b0',
    950: '#000000',
  },
}
SCSS
$custom: #b831b0;
$custom-light: #d177c8;
$custom-dark: #000000;
JSON
{
  "hex": "#b831b0",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 303.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56619,
    "c": 0.21769,
    "h": 330.6
  },
  "luminance": 0.15522
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B831B0

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

Preview Lab → · Contrast checker → · Palette generator →

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