#B831A7#B831A7

#B831A7 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.1% C 0.211 H 333.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#B831A7
RGBrgb(184, 49, 167)
HSLhsl(308, 58%, 46%)
HSVhsv(308, 73%, 72%)
CMYKcmyk(0%, 73.4%, 9.2%, 27.8%)
CIE-LABlab(45.88, 65.34, -34.14)
CIE-LCHlch(45.88, 73.72, 332.41°)
OKLaboklab(56.14% 0.1893 -0.0936)
OKLCHoklch(56.14% 0.211 333.7)
XYZxyz(27.8407, 15.1794, 38.0153)
Luminance0.1518 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831A7 #31B842
analogous
#8631B8 #B831A7 #B83163
triadic
#B831A7 #A7B831 #31A7B8
tetradic
#B831A7 #B88631 #31B842 #3163B8
square
#B831A7 #B88631 #31B842 #3163B8
split-complementary
#B831A7 #63B831 #31B886
monochromatic
#57174F #88247B #B831A7 #D255C2 #DE85D3

Accessibility & contrast

On white

5.20
#B831A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#B831A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831A7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831A7#FFFFFF#000000##FFFFFF
##B831A71.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D60AA
Deuteranopia (green-blind)
#5F74A4
Tritanopia (blue-blind)
#C13E69
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b831a7;
/* rgb */ color: rgb(184, 49, 167);
/* oklch */ color: oklch(56.1% 0.211 333.7);
Tailwind
colors: {
  custom: {
    50: '#d177c1',
    500: '#b831a7',
    950: '#000000',
  },
}
SCSS
$custom: #b831a7;
$custom-light: #d177c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b831a7",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 307.556,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56135,
    "c": 0.21114,
    "h": 333.7
  },
  "luminance": 0.15177
}

Semantic roles & 50–950 ramp

primary
#B831A7
secondary
#7DC886
accent
#E15A47
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #B831A7

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

Preview Lab → · Contrast checker → · Palette generator →

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