#B831A5#B831A5

#B831A5 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.0% C 0.210 H 334.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B831A5
RGBrgb(184, 49, 165)
HSLhsl(308, 58%, 46%)
HSVhsv(308, 73%, 72%)
CMYKcmyk(0%, 73.4%, 10.3%, 27.8%)
CIE-LABlab(45.78, 65.04, -33.11)
CIE-LCHlch(45.78, 72.98, 333.02°)
OKLaboklab(56.03% 0.1891 -0.0906)
OKLCHoklch(56.03% 0.21 334.4)
XYZxyz(27.6573, 15.1060, 37.0491)
Luminance0.1510 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831A5 #31B844
analogous
#8731B8 #B831A5 #B83162
triadic
#B831A5 #A5B831 #31A5B8
tetradic
#B831A5 #B88731 #31B844 #3162B8
square
#B831A5 #B88731 #31B844 #3162B8
split-complementary
#B831A5 #62B831 #31B887
monochromatic
#57174E #88247A #B831A5 #D255C0 #DE85D2

Accessibility & contrast

On white

5.22
#B831A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B831A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831A5
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831A5#FFFFFF#000000##FFFFFF
##B831A51.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F60A8
Deuteranopia (green-blind)
#6073A2
Tritanopia (blue-blind)
#C13D68
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b831a5;
/* rgb */ color: rgb(184, 49, 165);
/* oklch */ color: oklch(56.0% 0.210 334.4);
Tailwind
colors: {
  custom: {
    50: '#d177c0',
    500: '#b831a5',
    950: '#000000',
  },
}
SCSS
$custom: #b831a5;
$custom-light: #d177c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b831a5",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 308.444,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56031,
    "c": 0.2097,
    "h": 334.4
  },
  "luminance": 0.15104
}

Semantic roles & 50–950 ramp

primary
#B831A5
secondary
#7DC887
accent
#E15C47
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #B831A5

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

Preview Lab → · Contrast checker → · Palette generator →

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