#B831B7#B831B7

#B831B7 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.0% C 0.223 H 328.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#B831B7
RGBrgb(184, 49, 183)
HSLhsl(300, 58%, 46%)
HSVhsv(300, 73%, 72%)
CMYKcmyk(0%, 73.4%, 0.5%, 27.8%)
CIE-LABlab(46.72, 67.84, -42.25)
CIE-LCHlch(46.72, 79.92, 328.09°)
OKLaboklab(57.01% 0.1898 -0.117)
OKLCHoklch(57.01% 0.223 328.3)
XYZxyz(29.4124, 15.8080, 46.2927)
Luminance0.1581 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831B7 #31B832
analogous
#7531B8 #B831B7 #B83174
triadic
#B831B7 #B7B831 #31B7B8
tetradic
#B831B7 #B87531 #31B832 #3174B8
square
#B831B7 #B87531 #31B832 #3174B8
split-complementary
#B831B7 #74B831 #31B875
monochromatic
#571757 #882487 #B831B7 #D255D1 #DE85DE

Accessibility & contrast

On white

5.05
#B831B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#B831B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831B7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831B7#FFFFFF#000000##FFFFFF
##B831B71.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1763BB
Deuteranopia (green-blind)
#5775B4
Tritanopia (blue-blind)
#BE4672
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b831b7;
/* rgb */ color: rgb(184, 49, 183);
/* oklch */ color: oklch(57.0% 0.223 328.3);
Tailwind
colors: {
  custom: {
    50: '#d177cd',
    500: '#b831b7',
    950: '#000000',
  },
}
SCSS
$custom: #b831b7;
$custom-light: #d177cd;
$custom-dark: #000000;
JSON
{
  "hex": "#b831b7",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 300.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.57012,
    "c": 0.22294,
    "h": 328.3
  },
  "luminance": 0.15806
}

Semantic roles & 50–950 ramp

primary
#B831B7
secondary
#7DC87D
accent
#E14847
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #B831B7

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

Preview Lab → · Contrast checker → · Palette generator →

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