#B931A2#B931A2

#B931A2 is a mid, highly saturated pink. Relative luminance 0.151; OKLCH L 56.0% C 0.208 H 335.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B931A2
RGBrgb(185, 49, 162)
HSLhsl(310, 58%, 46%)
HSVhsv(310, 74%, 73%)
CMYKcmyk(0%, 73.5%, 12.4%, 27.5%)
CIE-LABlab(45.80, 64.83, -31.28)
CIE-LCHlch(45.80, 71.98, 334.24°)
OKLaboklab(56.03% 0.1899 -0.0853)
OKLCHoklch(56.03% 0.208 335.8)
XYZxyz(27.6279, 15.1220, 35.6392)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B931A2 #31B948
analogous
#8C31B9 #B931A2 #B9315E
triadic
#B931A2 #A2B931 #31A2B9
tetradic
#B931A2 #B98C31 #31B948 #315EB9
square
#B931A2 #B98C31 #31B948 #315EB9
split-complementary
#B931A2 #5EB931 #31B98C
monochromatic
#58174D #892478 #B931A2 #D255BD #DF86D0

Accessibility & contrast

On white

5.22
#B931A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B931A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B931A2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B931A2#FFFFFF#000000##FFFFFF
##B931A21.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA5
Deuteranopia (green-blind)
#62749F
Tritanopia (blue-blind)
#C23B66
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b931a2;
/* rgb */ color: rgb(185, 49, 162);
/* oklch */ color: oklch(56.0% 0.208 335.8);
Tailwind
colors: {
  custom: {
    50: '#d277be',
    500: '#b931a2',
    950: '#000000',
  },
}
SCSS
$custom: #b931a2;
$custom-light: #d277be;
$custom-dark: #000000;
JSON
{
  "hex": "#b931a2",
  "rgb": {
    "r": 185,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 310.147,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56031,
    "c": 0.20816,
    "h": 335.8
  },
  "luminance": 0.1512
}

Semantic roles & 50–950 ramp

primary
#B931A2
secondary
#7DC88A
accent
#E16146
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #B931A2

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

Preview Lab → · Contrast checker → · Palette generator →

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