#B31797#B31797

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

Color values

HEX#B31797
RGBrgb(179, 23, 151)
HSLhsl(311, 77%, 40%)
HSVhsv(311, 87%, 70%)
CMYKcmyk(0%, 87.2%, 15.6%, 29.8%)
CIE-LABlab(41.90, 68.58, -30.87)
CIE-LCHlch(41.90, 75.21, 335.77°)
OKLaboklab(52.86% 0.2032 -0.0841)
OKLCHoklch(52.86% 0.22 337.5)
XYZxyz(24.4833, 12.4333, 30.3826)
Luminance0.1243 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31797 #17B333
analogous
#8117B3 #B31797 #B31749
triadic
#B31797 #97B317 #1797B3
tetradic
#B31797 #B38117 #17B333 #1749B3
square
#B31797 #B38117 #17B333 #1749B3
split-complementary
#B31797 #49B317 #17B381
monochromatic
#47093C #7D1069 #B31797 #E324C1 #EA5BD0

Accessibility & contrast

On white

6.02
#B31797 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#B31797 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31797
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31797#FFFFFF#000000##FFFFFF
##B317971.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b31797;
/* rgb */ color: rgb(179, 23, 151);
/* oklch */ color: oklch(52.9% 0.220 337.5);
Tailwind
colors: {
  custom: {
    50: '#ce6db6',
    500: '#b31797',
    950: '#000000',
  },
}
SCSS
$custom: #b31797;
$custom-light: #ce6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#b31797",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 151
  },
  "hsl": {
    "h": 310.769,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52855,
    "c": 0.21988,
    "h": 337.5
  },
  "luminance": 0.12431
}

Semantic roles & 50–950 ramp

primary
#B31797
secondary
#58CD6D
accent
#F45634
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31797

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

Preview Lab → · Contrast checker → · Palette generator →

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