#B42217#B42217

#B42217 is a mid, vivid red. Relative luminance 0.109; OKLCH L 50.0% C 0.183 H 29.5°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#B42217
RGBrgb(180, 34, 23)
HSLhsl(4, 77%, 40%)
HSVhsv(4, 87%, 71%)
CMYKcmyk(0%, 81.1%, 87.2%, 29.4%)
CIE-LABlab(39.43, 56.22, 43.81)
CIE-LCHlch(39.43, 71.28, 37.93°)
OKLaboklab(49.95% 0.1591 0.0901)
OKLCHoklch(49.95% 0.183 29.5)
XYZxyz(19.5516, 10.9124, 1.8873)
Luminance0.1091 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42217 #17A9B4
analogous
#B4175A #B42217 #B47117
triadic
#B42217 #17B422 #2217B4
tetradic
#B42217 #5AB417 #17A9B4 #7117B4
square
#B42217 #5AB417 #17A9B4 #7117B4
split-complementary
#B42217 #17B471 #175AB4
monochromatic
#470D09 #7E1810 #B42217 #E33225 #EA655B

Accessibility & contrast

On white

6.60
#B42217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#B42217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42217
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42217#FFFFFF#000000##FFFFFF
##B422171.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#524813
Deuteranopia (green-blind)
#75680C
Tritanopia (blue-blind)
#C70022
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #b42217;
/* rgb */ color: rgb(180, 34, 23);
/* oklch */ color: oklch(50.0% 0.183 29.5);
Tailwind
colors: {
  custom: {
    50: '#d56c57',
    500: '#b42217',
    950: '#000000',
  },
}
SCSS
$custom: #b42217;
$custom-light: #d56c57;
$custom-dark: #000000;
JSON
{
  "hex": "#b42217",
  "rgb": {
    "r": 180,
    "g": 34,
    "b": 23
  },
  "hsl": {
    "h": 4.204,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.49953,
    "c": 0.18282,
    "h": 29.5
  },
  "luminance": 0.10909
}

Semantic roles & 50–950 ramp

primary
#B42217
secondary
#59C5CE
accent
#E6F434
background
#FEF6F5
surface
#FDECE9
border
#D5C7C5
text
#160803
muted
#847A78

Preview Lab

Preview with #B42217

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

Preview Lab → · Contrast checker → · Palette generator →

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