#B31A99#B31A99

#B31A99 is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 53.1% C 0.219 H 336.8°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#B31A99
RGBrgb(179, 26, 153)
HSLhsl(310, 75%, 40%)
HSVhsv(310, 85%, 70%)
CMYKcmyk(0%, 85.5%, 14.5%, 29.8%)
CIE-LABlab(42.19, 68.29, -31.62)
CIE-LCHlch(42.19, 75.25, 335.16°)
OKLaboklab(53.1% 0.2016 -0.0863)
OKLCHoklch(53.1% 0.219 336.8)
XYZxyz(24.7101, 12.6248, 31.2663)
Luminance0.1262 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A99 #1AB334
analogous
#801AB3 #B31A99 #B31A4D
triadic
#B31A99 #99B31A #1A99B3
tetradic
#B31A99 #B3801A #1AB334 #1A4DB3
square
#B31A99 #B3801A #1AB334 #1A4DB3
split-complementary
#B31A99 #4DB31A #1AB380
monochromatic
#480A3E #7E126B #B31A99 #E02AC1 #E860D1

Accessibility & contrast

On white

5.96
#B31A99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#B31A99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31A99
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A99#FFFFFF#000000##FFFFFF
##B31A991.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20559C
Deuteranopia (green-blind)
#5A6B96
Tritanopia (blue-blind)
#BD285C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #b31a99;
/* rgb */ color: rgb(179, 26, 153);
/* oklch */ color: oklch(53.1% 0.219 336.8);
Tailwind
colors: {
  custom: {
    50: '#ce6db7',
    500: '#b31a99',
    950: '#000000',
  },
}
SCSS
$custom: #b31a99;
$custom-light: #ce6db7;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a99",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 153
  },
  "hsl": {
    "h": 310.196,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.53099,
    "c": 0.21925,
    "h": 336.8
  },
  "luminance": 0.12622
}

Semantic roles & 50–950 ramp

primary
#B31A99
secondary
#5DCC70
accent
#F15637
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31A99

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

Preview Lab → · Contrast checker → · Palette generator →

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