#B831A9#B831A9

#B831A9 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.2% C 0.213 H 333.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#B831A9
RGBrgb(184, 49, 169)
HSLhsl(307, 58%, 46%)
HSVhsv(307, 73%, 72%)
CMYKcmyk(0%, 73.4%, 8.2%, 27.8%)
CIE-LABlab(45.98, 65.64, -35.17)
CIE-LCHlch(45.98, 74.47, 331.82°)
OKLaboklab(56.24% 0.1894 -0.0965)
OKLCHoklch(56.24% 0.213 333)
XYZxyz(28.0271, 15.2539, 38.9966)
Luminance0.1525 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831A9 #31B840
analogous
#8331B8 #B831A9 #B83165
triadic
#B831A9 #A9B831 #31A9B8
tetradic
#B831A9 #B88331 #31B840 #3165B8
square
#B831A9 #B88331 #31B840 #3165B8
split-complementary
#B831A9 #65B831 #31B883
monochromatic
#571750 #88247D #B831A9 #D255C4 #DE85D5

Accessibility & contrast

On white

5.18
#B831A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#B831A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831A9
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831A9#FFFFFF#000000##FFFFFF
##B831A91.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B61AC
Deuteranopia (green-blind)
#5E74A6
Tritanopia (blue-blind)
#C03F6A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b831a9;
/* rgb */ color: rgb(184, 49, 169);
/* oklch */ color: oklch(56.2% 0.213 333.0);
Tailwind
colors: {
  custom: {
    50: '#d177c3',
    500: '#b831a9',
    950: '#000000',
  },
}
SCSS
$custom: #b831a9;
$custom-light: #d177c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b831a9",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 169
  },
  "hsl": {
    "h": 306.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56241,
    "c": 0.21257,
    "h": 333
  },
  "luminance": 0.15252
}

Semantic roles & 50–950 ramp

primary
#B831A9
secondary
#7DC885
accent
#E15847
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #B831A9

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

Preview Lab → · Contrast checker → · Palette generator →

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