#B831B8#B831B8

#B831B8 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.1% C 0.224 H 328.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#B831B8
RGBrgb(184, 49, 184)
HSLhsl(300, 58%, 46%)
HSVhsv(300, 73%, 72%)
CMYKcmyk(0%, 73.4%, 0%, 27.8%)
CIE-LABlab(46.78, 68.01, -42.75)
CIE-LCHlch(46.78, 80.32, 327.85°)
OKLaboklab(57.07% 0.1898 -0.1184)
OKLCHoklch(57.07% 0.224 328)
XYZxyz(29.5168, 15.8498, 46.8428)
Luminance0.1585 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831B8 #31B831
analogous
#7431B8 #B831B8 #B83174
triadic
#B831B8 #B8B831 #31B8B8
tetradic
#B831B8 #B87431 #31B831 #3174B8
square
#B831B8 #B87431 #31B831 #3174B8
split-complementary
#B831B8 #74B831 #31B874
monochromatic
#571757 #882488 #B831B8 #D255D2 #DE85DE

Accessibility & contrast

On white

5.04
#B831B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#B831B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831B8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831B8#FFFFFF#000000##FFFFFF
##B831B81.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1464BC
Deuteranopia (green-blind)
#5675B5
Tritanopia (blue-blind)
#BE4672
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b831b8;
/* rgb */ color: rgb(184, 49, 184);
/* oklch */ color: oklch(57.1% 0.224 328.0);
Tailwind
colors: {
  custom: {
    50: '#d177ce',
    500: '#b831b8',
    950: '#000000',
  },
}
SCSS
$custom: #b831b8;
$custom-light: #d177ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b831b8",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 300,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.57069,
    "c": 0.22369,
    "h": 328
  },
  "luminance": 0.15848
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B831B8

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

Preview Lab → · Contrast checker → · Palette generator →

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