#B31A96#B31A96

#B31A96 is a mid, highly saturated pink. Relative luminance 0.125; OKLCH L 52.9% C 0.217 H 337.9°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#B31A96
RGBrgb(179, 26, 150)
HSLhsl(311, 75%, 40%)
HSVhsv(311, 85%, 70%)
CMYKcmyk(0%, 85.5%, 16.2%, 29.8%)
CIE-LABlab(42.04, 67.88, -30.04)
CIE-LCHlch(42.04, 74.23, 336.13°)
OKLaboklab(52.94% 0.2014 -0.0817)
OKLCHoklch(52.94% 0.217 337.9)
XYZxyz(24.4654, 12.5270, 29.9777)
Luminance0.1253 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A96 #1AB337
analogous
#841AB3 #B31A96 #B31A49
triadic
#B31A96 #96B31A #1A96B3
tetradic
#B31A96 #B3841A #1AB337 #1A49B3
square
#B31A96 #B3841A #1AB337 #1A49B3
split-complementary
#B31A96 #49B31A #1AB384
monochromatic
#480A3C #7E1269 #B31A96 #E02ABE #E860CE

Accessibility & contrast

On white

5.99
#B31A96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#B31A96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A96
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A96#FFFFFF#000000##FFFFFF
##B31A961.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235599
Deuteranopia (green-blind)
#5B6B93
Tritanopia (blue-blind)
#BD265A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31a96;
/* rgb */ color: rgb(179, 26, 150);
/* oklch */ color: oklch(52.9% 0.217 337.9);
Tailwind
colors: {
  custom: {
    50: '#ce6db5',
    500: '#b31a96',
    950: '#000000',
  },
}
SCSS
$custom: #b31a96;
$custom-light: #ce6db5;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a96",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 150
  },
  "hsl": {
    "h": 311.373,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52942,
    "c": 0.21735,
    "h": 337.9
  },
  "luminance": 0.12525
}

Semantic roles & 50–950 ramp

primary
#B31A96
secondary
#5DCC72
accent
#F15A37
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31A96

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

Preview Lab → · Contrast checker → · Palette generator →

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