#B831AC#B831AC

#B831AC is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.4% C 0.215 H 332.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#B831AC
RGBrgb(184, 49, 172)
HSLhsl(305, 58%, 46%)
HSVhsv(305, 73%, 72%)
CMYKcmyk(0%, 73.4%, 6.5%, 27.8%)
CIE-LABlab(46.13, 66.10, -36.70)
CIE-LCHlch(46.13, 75.61, 330.96°)
OKLaboklab(56.4% 0.1895 -0.1009)
OKLCHoklch(56.4% 0.215 332)
XYZxyz(28.3119, 15.3678, 40.4969)
Luminance0.1537 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B831AC #31B83D
analogous
#8031B8 #B831AC #B83169
triadic
#B831AC #ACB831 #31ACB8
tetradic
#B831AC #B88031 #31B83D #3169B8
square
#B831AC #B88031 #31B83D #3169B8
split-complementary
#B831AC #69B831 #31B880
monochromatic
#571752 #88247F #B831AC #D255C7 #DE85D7

Accessibility & contrast

On white

5.16
#B831AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B831AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B831AC
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B831AC#FFFFFF#000000##FFFFFF
##B831AC1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AF
Deuteranopia (green-blind)
#5D74A9
Tritanopia (blue-blind)
#C0406C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b831ac;
/* rgb */ color: rgb(184, 49, 172);
/* oklch */ color: oklch(56.4% 0.215 332.0);
Tailwind
colors: {
  custom: {
    50: '#d177c5',
    500: '#b831ac',
    950: '#000000',
  },
}
SCSS
$custom: #b831ac;
$custom-light: #d177c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b831ac",
  "rgb": {
    "r": 184,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 305.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56401,
    "c": 0.21475,
    "h": 332
  },
  "luminance": 0.15366
}

Semantic roles & 50–950 ramp

primary
#B831AC
secondary
#7DC884
accent
#E15447
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B831AC

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

Preview Lab → · Contrast checker → · Palette generator →

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