#B31997#B31997

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

Color values

HEX#B31997
RGBrgb(179, 25, 151)
HSLhsl(311, 75%, 40%)
HSVhsv(311, 86%, 70%)
CMYKcmyk(0%, 86%, 15.6%, 29.8%)
CIE-LABlab(42.02, 68.21, -30.67)
CIE-LCHlch(42.02, 74.79, 335.79°)
OKLaboklab(52.95% 0.202 -0.0835)
OKLCHoklch(52.95% 0.219 337.5)
XYZxyz(24.5245, 12.5158, 30.3964)
Luminance0.1251 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31997 #19B335
analogous
#8219B3 #B31997 #B3194A
triadic
#B31997 #97B319 #1997B3
tetradic
#B31997 #B38219 #19B335 #194AB3
square
#B31997 #B38219 #19B335 #194AB3
split-complementary
#B31997 #4AB319 #19B382
monochromatic
#480A3C #7D126A #B31997 #E128BF #E85ECF

Accessibility & contrast

On white

6.00
#B31997 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#B31997 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31997
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31997#FFFFFF#000000##FFFFFF
##B319971.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559A
Deuteranopia (green-blind)
#5A6B94
Tritanopia (blue-blind)
#BD265A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31997;
/* rgb */ color: rgb(179, 25, 151);
/* oklch */ color: oklch(52.9% 0.219 337.5);
Tailwind
colors: {
  custom: {
    50: '#ce6db6',
    500: '#b31997',
    950: '#000000',
  },
}
SCSS
$custom: #b31997;
$custom-light: #ce6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#b31997",
  "rgb": {
    "r": 179,
    "g": 25,
    "b": 151
  },
  "hsl": {
    "h": 310.909,
    "s": 75.49,
    "l": 40
  },
  "oklch": {
    "l": 0.52946,
    "c": 0.21863,
    "h": 337.5
  },
  "luminance": 0.12513
}

Semantic roles & 50–950 ramp

primary
#B31997
secondary
#5BCC70
accent
#F25836
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31997

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

Preview Lab → · Contrast checker → · Palette generator →

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