#B931AC#B931AC

#B931AC is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.6% C 0.215 H 332.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#B931AC
RGBrgb(185, 49, 172)
HSLhsl(306, 58%, 46%)
HSVhsv(306, 74%, 73%)
CMYKcmyk(0%, 73.5%, 7%, 27.5%)
CIE-LABlab(46.30, 66.33, -36.43)
CIE-LCHlch(46.30, 75.67, 331.22°)
OKLaboklab(56.55% 0.1906 -0.1001)
OKLCHoklch(56.55% 0.215 332.3)
XYZxyz(28.5524, 15.4918, 40.5082)
Luminance0.1549 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B931AC #31B93E
analogous
#8231B9 #B931AC #B93168
triadic
#B931AC #ACB931 #31ACB9
tetradic
#B931AC #B98231 #31B93E #3168B9
square
#B931AC #B98231 #31B93E #3168B9
split-complementary
#B931AC #68B931 #31B982
monochromatic
#581752 #89247F #B931AC #D255C6 #DF86D6

Accessibility & contrast

On white

5.12
#B931AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#B931AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B931AC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B931AC#FFFFFF#000000##FFFFFF
##B931AC1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b931ac;
/* rgb */ color: rgb(185, 49, 172);
/* oklch */ color: oklch(56.6% 0.215 332.3);
Tailwind
colors: {
  custom: {
    50: '#d277c5',
    500: '#b931ac',
    950: '#000000',
  },
}
SCSS
$custom: #b931ac;
$custom-light: #d277c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b931ac",
  "rgb": {
    "r": 185,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 305.735,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56553,
    "c": 0.21527,
    "h": 332.3
  },
  "luminance": 0.15489
}

Semantic roles & 50–950 ramp

primary
#B931AC
secondary
#7DC885
accent
#E15546
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #B931AC

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

Preview Lab → · Contrast checker → · Palette generator →

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