#B31A97#B31A97

#B31A97 is a mid, highly saturated pink. Relative luminance 0.126; OKLCH L 53.0% C 0.218 H 337.5°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#B31A97
RGBrgb(179, 26, 151)
HSLhsl(311, 75%, 40%)
HSVhsv(311, 85%, 70%)
CMYKcmyk(0%, 85.5%, 15.6%, 29.8%)
CIE-LABlab(42.09, 68.01, -30.57)
CIE-LCHlch(42.09, 74.57, 335.80°)
OKLaboklab(52.99% 0.2015 -0.0832)
OKLCHoklch(52.99% 0.218 337.5)
XYZxyz(24.5463, 12.5593, 30.4036)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31A97 #1AB336
analogous
#821AB3 #B31A97 #B31A4B
triadic
#B31A97 #97B31A #1A97B3
tetradic
#B31A97 #B3821A #1AB336 #1A4BB3
square
#B31A97 #B3821A #1AB336 #1A4BB3
split-complementary
#B31A97 #4BB31A #1AB382
monochromatic
#480A3D #7E126A #B31A97 #E02ABF #E860CF

Accessibility & contrast

On white

5.98
#B31A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31A97
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31A97#FFFFFF#000000##FFFFFF
##B31A971.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22559A
Deuteranopia (green-blind)
#5B6B94
Tritanopia (blue-blind)
#BD275A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31a97;
/* rgb */ color: rgb(179, 26, 151);
/* oklch */ color: oklch(53.0% 0.218 337.5);
Tailwind
colors: {
  custom: {
    50: '#ce6db6',
    500: '#b31a97',
    950: '#000000',
  },
}
SCSS
$custom: #b31a97;
$custom-light: #ce6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#b31a97",
  "rgb": {
    "r": 179,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 310.98,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52994,
    "c": 0.21797,
    "h": 337.5
  },
  "luminance": 0.12557
}

Semantic roles & 50–950 ramp

primary
#B31A97
secondary
#5DCC71
accent
#F15937
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31A97

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

Preview Lab → · Contrast checker → · Palette generator →

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