#B831BF#B831BF

#B831BF is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.5% C 0.229 H 325.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B831BF
RGBrgb(184, 49, 191)
HSLhsl(297, 59%, 47%)
HSVhsv(297, 74%, 75%)
CMYKcmyk(3.7%, 74.3%, 0%, 25.1%)
CIE-LABlab(47.17, 69.16, -46.21)
CIE-LCHlch(47.17, 83.17, 326.25°)
OKLaboklab(57.48% 0.1896 -0.1285)
OKLCHoklch(57.48% 0.229 325.9)
XYZxyz(30.2688, 16.1506, 50.8032)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831BF #38BF31
analogous
#7131BF #B831BF #BF317F
triadic
#B831BF #BFB831 #31BFB8
tetradic
#B831BF #BF7131 #38BF31 #317FBF
square
#B831BF #BF7131 #38BF31 #317FBF
split-complementary
#B831BF #7FBF31 #31BF71
monochromatic
#5A185E #89258E #B831BF #CE59D4 #DD8AE1

Accessibility & contrast

On white

4.96
#B831BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#B831BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831BF
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831BF#FFFFFF#000000##FFFFFF
##B831BF1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C3
Deuteranopia (green-blind)
#5276BC
Tritanopia (blue-blind)
#BD4A76
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b831bf;
/* rgb */ color: rgb(184, 49, 191);
/* oklch */ color: oklch(57.5% 0.229 325.9);
Tailwind
colors: {
  custom: {
    50: '#d178d3',
    500: '#b831bf',
    950: '#000000',
  },
}
SCSS
$custom: #b831bf;
$custom-light: #d178d3;
$custom-dark: #000000;
JSON
{
  "hex": "#b831bf",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 191
  },
  "hsl": {
    "h": 297.042,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.57478,
    "c": 0.22905,
    "h": 325.9
  },
  "luminance": 0.16149
}

Semantic roles & 50–950 ramp

primary
#B831BF
secondary
#85CB81
accent
#E2454D
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #B831BF

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

Preview Lab → · Contrast checker → · Palette generator →

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