#B831B5#B831B5

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

Color values

HEX#B831B5
RGBrgb(184, 49, 181)
HSLhsl(301, 58%, 46%)
HSVhsv(301, 73%, 72%)
CMYKcmyk(0%, 73.4%, 1.6%, 27.8%)
CIE-LABlab(46.61, 67.52, -41.25)
CIE-LCHlch(46.61, 79.12, 328.58°)
OKLaboklab(56.9% 0.1898 -0.1141)
OKLCHoklch(56.9% 0.221 329)
XYZxyz(29.2057, 15.7254, 45.2042)
Luminance0.1572 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831B5 #31B834
analogous
#7731B8 #B831B5 #B83172
triadic
#B831B5 #B5B831 #31B5B8
tetradic
#B831B5 #B87731 #31B834 #3172B8
square
#B831B5 #B87731 #31B834 #3172B8
split-complementary
#B831B5 #72B831 #31B877
monochromatic
#571756 #882485 #B831B5 #D255CF #DE85DC

Accessibility & contrast

On white

5.07
#B831B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B831B5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831B5#FFFFFF#000000##FFFFFF
##B831B51.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B63B9
Deuteranopia (green-blind)
#5875B2
Tritanopia (blue-blind)
#BE4571
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b831b5;
/* rgb */ color: rgb(184, 49, 181);
/* oklch */ color: oklch(56.9% 0.221 329.0);
Tailwind
colors: {
  custom: {
    50: '#d177cc',
    500: '#b831b5',
    950: '#000000',
  },
}
SCSS
$custom: #b831b5;
$custom-light: #d177cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b831b5",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 301.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56898,
    "c": 0.22143,
    "h": 329
  },
  "luminance": 0.15723
}

Semantic roles & 50–950 ramp

primary
#B831B5
secondary
#7DC87F
accent
#E14A47
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #B831B5

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

Preview Lab → · Contrast checker → · Palette generator →

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