#B831BA#B831BA

#B831BA is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.2% C 0.225 H 327.4°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#B831BA
RGBrgb(184, 49, 186)
HSLhsl(299, 58%, 46%)
HSVhsv(299, 74%, 73%)
CMYKcmyk(1.1%, 73.7%, 0%, 27.1%)
CIE-LABlab(46.89, 68.33, -43.74)
CIE-LCHlch(46.89, 81.13, 327.38°)
OKLaboklab(57.18% 0.1897 -0.1213)
OKLCHoklch(57.18% 0.225 327.4)
XYZxyz(29.7280, 15.9343, 47.9547)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831BA #33BA31
analogous
#7331BA #B831BA #BA3177
triadic
#B831BA #BAB831 #31BAB8
tetradic
#B831BA #BA7331 #33BA31 #3177BA
square
#B831BA #BA7331 #33BA31 #3177BA
split-complementary
#B831BA #77BA31 #31BA73
monochromatic
#581759 #88248A #B831BA #D156D2 #DE86DF

Accessibility & contrast

On white

5.02
#B831BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#B831BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831BA
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831BA#FFFFFF#000000##FFFFFF
##B831BA1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F64BE
Deuteranopia (green-blind)
#5575B7
Tritanopia (blue-blind)
#BD4773
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b831ba;
/* rgb */ color: rgb(184, 49, 186);
/* oklch */ color: oklch(57.2% 0.225 327.4);
Tailwind
colors: {
  custom: {
    50: '#d177cf',
    500: '#b831ba',
    950: '#000000',
  },
}
SCSS
$custom: #b831ba;
$custom-light: #d177cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b831ba",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 299.124,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.57185,
    "c": 0.22521,
    "h": 327.4
  },
  "luminance": 0.15932
}

Semantic roles & 50–950 ramp

primary
#B831BA
secondary
#7FC97E
accent
#E24649
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #B831BA

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

Preview Lab → · Contrast checker → · Palette generator →

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