#B42817#B42817

#B42817 is a mid, vivid red. Relative luminance 0.113; OKLCH L 50.4% C 0.179 H 30.7°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#B42817
RGBrgb(180, 40, 23)
HSLhsl(6, 77%, 40%)
HSVhsv(6, 87%, 71%)
CMYKcmyk(0%, 77.8%, 87.2%, 29.4%)
CIE-LABlab(40.06, 54.46, 44.33)
CIE-LCHlch(40.06, 70.22, 39.14°)
OKLaboklab(50.42% 0.1536 0.0913)
OKLCHoklch(50.42% 0.179 30.7)
XYZxyz(19.7383, 11.2859, 1.9496)
Luminance0.1128 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42817 #17A3B4
analogous
#B41754 #B42817 #B47717
triadic
#B42817 #17B428 #2817B4
tetradic
#B42817 #54B417 #17A3B4 #7717B4
square
#B42817 #54B417 #17A3B4 #7717B4
split-complementary
#B42817 #17B477 #1754B4
monochromatic
#471009 #7E1C10 #B42817 #E33A25 #EA6B5B

Accessibility & contrast

On white

6.45
#B42817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#B42817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B42817
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B42817#FFFFFF#000000##FFFFFF
##B428171.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B12
Deuteranopia (green-blind)
#77690C
Tritanopia (blue-blind)
#C70026
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b42817;
/* rgb */ color: rgb(180, 40, 23);
/* oklch */ color: oklch(50.4% 0.179 30.7);
Tailwind
colors: {
  custom: {
    50: '#d56e57',
    500: '#b42817',
    950: '#000000',
  },
}
SCSS
$custom: #b42817;
$custom-light: #d56e57;
$custom-dark: #000000;
JSON
{
  "hex": "#b42817",
  "rgb": {
    "r": 180,
    "g": 40,
    "b": 23
  },
  "hsl": {
    "h": 6.497,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.50419,
    "c": 0.17869,
    "h": 30.7
  },
  "luminance": 0.11283
}

Semantic roles & 50–950 ramp

primary
#B42817
secondary
#59C1CE
accent
#DFF434
background
#FEF7F5
surface
#FDEDE9
border
#D5C8C5
text
#160803
muted
#847B78

Preview Lab

Preview with #B42817

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

Preview Lab → · Contrast checker → · Palette generator →

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