#B31798#B31798

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

Color values

HEX#B31798
RGBrgb(179, 23, 152)
HSLhsl(310, 77%, 40%)
HSVhsv(310, 87%, 70%)
CMYKcmyk(0%, 87.2%, 15.1%, 29.8%)
CIE-LABlab(41.95, 68.72, -31.40)
CIE-LCHlch(41.95, 75.55, 335.44°)
OKLaboklab(52.91% 0.2032 -0.0856)
OKLCHoklch(52.91% 0.221 337.2)
XYZxyz(24.5649, 12.4660, 30.8121)
Luminance0.1246 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31798 #17B332
analogous
#8017B3 #B31798 #B3174A
triadic
#B31798 #98B317 #1798B3
tetradic
#B31798 #B38017 #17B332 #174AB3
square
#B31798 #B38017 #17B332 #174AB3
split-complementary
#B31798 #4AB317 #17B380
monochromatic
#47093C #7D106A #B31798 #E324C2 #EA5BD1

Accessibility & contrast

On white

6.01
#B31798 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B31798
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31798#FFFFFF#000000##FFFFFF
##B317981.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F549B
Deuteranopia (green-blind)
#5A6B95
Tritanopia (blue-blind)
#BD265B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #b31798;
/* rgb */ color: rgb(179, 23, 152);
/* oklch */ color: oklch(52.9% 0.221 337.2);
Tailwind
colors: {
  custom: {
    50: '#ce6db6',
    500: '#b31798',
    950: '#000000',
  },
}
SCSS
$custom: #b31798;
$custom-light: #ce6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#b31798",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 152
  },
  "hsl": {
    "h": 310.385,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52907,
    "c": 0.22052,
    "h": 337.2
  },
  "luminance": 0.12463
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B31798

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

Preview Lab → · Contrast checker → · Palette generator →

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