#B4172F#B4172F

#B4172F is a mid, vivid red. Relative luminance 0.105; OKLCH L 49.5% C 0.187 H 21.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#B4172F
RGBrgb(180, 23, 47)
HSLhsl(351, 77%, 40%)
HSVhsv(351, 87%, 71%)
CMYKcmyk(0%, 87.2%, 73.9%, 29.4%)
CIE-LABlab(38.77, 59.55, 29.73)
CIE-LCHlch(38.77, 66.56, 26.53°)
OKLaboklab(49.54% 0.1746 0.0673)
OKLCHoklch(49.54% 0.187 21.1)
XYZxyz(19.6443, 10.5245, 3.6859)
Luminance0.1052 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B4172F #17B49C
analogous
#B4177E #B4172F #B44E17
triadic
#B4172F #2FB417 #172FB4
tetradic
#B4172F #7EB417 #17B49C #4E17B4
square
#B4172F #7EB417 #17B49C #4E17B4
split-complementary
#B4172F #17B44E #177EB4
monochromatic
#470913 #7E1021 #B4172F #E32542 #EA5B71

Accessibility & contrast

On white

6.77
#B4172F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#B4172F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B4172F
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B4172F#FFFFFF#000000##FFFFFF
##B4172F1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C462E
Deuteranopia (green-blind)
#726729
Tritanopia (blue-blind)
#C60023
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #b4172f;
/* rgb */ color: rgb(180, 23, 47);
/* oklch */ color: oklch(49.5% 0.187 21.1);
Tailwind
colors: {
  custom: {
    50: '#d46967',
    500: '#b4172f',
    950: '#000000',
  },
}
SCSS
$custom: #b4172f;
$custom-light: #d46967;
$custom-dark: #000000;
JSON
{
  "hex": "#b4172f",
  "rgb": {
    "r": 180,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 350.828,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49539,
    "c": 0.18708,
    "h": 21.1
  },
  "luminance": 0.10521
}

Semantic roles & 50–950 ramp

primary
#B4172F
secondary
#59CEBC
accent
#F4D734
background
#FEF6F6
surface
#FCECEB
border
#D5C7C6
text
#160706
muted
#847A7A

Preview Lab

Preview with #B4172F

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

Preview Lab → · Contrast checker → · Palette generator →

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