#B931A6#B931A6

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

Color values

HEX#B931A6
RGBrgb(185, 49, 166)
HSLhsl(308, 58%, 46%)
HSVhsv(308, 74%, 73%)
CMYKcmyk(0%, 73.5%, 10.3%, 27.5%)
CIE-LABlab(46.00, 65.42, -33.35)
CIE-LCHlch(46.00, 73.43, 332.99°)
OKLaboklab(56.24% 0.1902 -0.0913)
OKLCHoklch(56.24% 0.211 334.4)
XYZxyz(27.9891, 15.2665, 37.5416)
Luminance0.1526 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B931A6 #31B944
analogous
#8831B9 #B931A6 #B93162
triadic
#B931A6 #A6B931 #31A6B9
tetradic
#B931A6 #B98831 #31B944 #3162B9
square
#B931A6 #B98831 #31B944 #3162B9
split-complementary
#B931A6 #62B931 #31B988
monochromatic
#58174F #89247B #B931A6 #D255C1 #DF86D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B931A6#FFFFFF#000000##FFFFFF
##B931A61.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)
#2F60A9
Deuteranopia (green-blind)
#6074A3
Tritanopia (blue-blind)
#C23D68
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b931a6;
/* rgb */ color: rgb(185, 49, 166);
/* oklch */ color: oklch(56.2% 0.211 334.4);
Tailwind
colors: {
  custom: {
    50: '#d277c1',
    500: '#b931a6',
    950: '#000000',
  },
}
SCSS
$custom: #b931a6;
$custom-light: #d277c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b931a6",
  "rgb": {
    "r": 185,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 308.382,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56236,
    "c": 0.21097,
    "h": 334.4
  },
  "luminance": 0.15264
}

Semantic roles & 50–950 ramp

primary
#B931A6
secondary
#7DC888
accent
#E15C46
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #B931A6

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

Preview Lab → · Contrast checker → · Palette generator →

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