#B31794#B31794

#B31794 is a mid, highly saturated pink. Relative luminance 0.123; OKLCH L 52.7% C 0.218 H 338.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#B31794
RGBrgb(179, 23, 148)
HSLhsl(312, 77%, 40%)
HSVhsv(312, 87%, 70%)
CMYKcmyk(0%, 87.2%, 17.3%, 29.8%)
CIE-LABlab(41.75, 68.18, -29.29)
CIE-LCHlch(41.75, 74.21, 336.75°)
OKLaboklab(52.7% 0.203 -0.0796)
OKLCHoklch(52.7% 0.218 338.6)
XYZxyz(24.2428, 12.3371, 29.1158)
Luminance0.1234 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B31794 #17B336
analogous
#8417B3 #B31794 #B31746
triadic
#B31794 #94B317 #1794B3
tetradic
#B31794 #B38417 #17B336 #1746B3
square
#B31794 #B38417 #17B336 #1746B3
split-complementary
#B31794 #46B317 #17B384
monochromatic
#47093A #7D1067 #B31794 #E324BD #EA5BCD

Accessibility & contrast

On white

6.06
#B31794 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#B31794 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B31794
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B31794#FFFFFF#000000##FFFFFF
##B317941.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235497
Deuteranopia (green-blind)
#5B6B91
Tritanopia (blue-blind)
#BE2258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b31794;
/* rgb */ color: rgb(179, 23, 148);
/* oklch */ color: oklch(52.7% 0.218 338.6);
Tailwind
colors: {
  custom: {
    50: '#ce6db4',
    500: '#b31794',
    950: '#000000',
  },
}
SCSS
$custom: #b31794;
$custom-light: #ce6db4;
$custom-dark: #000000;
JSON
{
  "hex": "#b31794",
  "rgb": {
    "r": 179,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 311.923,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52699,
    "c": 0.218,
    "h": 338.6
  },
  "luminance": 0.12335
}

Semantic roles & 50–950 ramp

primary
#B31794
secondary
#58CD70
accent
#F45A34
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140811
muted
#837B80

Preview Lab

Preview with #B31794

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

Preview Lab → · Contrast checker → · Palette generator →

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