#B42F17#B42F17

#B42F17 is a mid, vivid red. Relative luminance 0.118; OKLCH L 51.0% C 0.173 H 32.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#B42F17
RGBrgb(180, 47, 23)
HSLhsl(9, 77%, 40%)
HSVhsv(9, 87%, 71%)
CMYKcmyk(0%, 73.9%, 87.2%, 29.4%)
CIE-LABlab(40.90, 52.12, 45.02)
CIE-LCHlch(40.90, 68.87, 40.82°)
OKLaboklab(51.05% 0.1463 0.093)
OKLCHoklch(51.05% 0.173 32.4)
XYZxyz(19.9960, 11.8014, 2.0355)
Luminance0.1180 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42F17 #179CB4
analogous
#B4174E #B42F17 #B47E17
triadic
#B42F17 #17B42F #2F17B4
tetradic
#B42F17 #4EB417 #179CB4 #7E17B4
square
#B42F17 #4EB417 #179CB4 #7E17B4
split-complementary
#B42F17 #17B47E #174EB4
monochromatic
#471309 #7E2110 #B42F17 #E34225 #EA715B

Accessibility & contrast

On white

6.25
#B42F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#B42F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42F17
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42F17#FFFFFF#000000##FFFFFF
##B42F171.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584E12
Deuteranopia (green-blind)
#796B0D
Tritanopia (blue-blind)
#C7002B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #b42f17;
/* rgb */ color: rgb(180, 47, 23);
/* oklch */ color: oklch(51.0% 0.173 32.4);
Tailwind
colors: {
  custom: {
    50: '#d47158',
    500: '#b42f17',
    950: '#000000',
  },
}
SCSS
$custom: #b42f17;
$custom-light: #d47158;
$custom-dark: #000000;
JSON
{
  "hex": "#b42f17",
  "rgb": {
    "r": 180,
    "g": 47,
    "b": 23
  },
  "hsl": {
    "h": 9.172,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.51046,
    "c": 0.17336,
    "h": 32.4
  },
  "luminance": 0.11798
}

Semantic roles & 50–950 ramp

primary
#B42F17
secondary
#59BCCE
accent
#D7F434
background
#FEF7F5
surface
#FDEDE9
border
#D5C8C5
text
#160803
muted
#847B78

Preview Lab

Preview with #B42F17

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

Preview Lab → · Contrast checker → · Palette generator →

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