#B42818#B42818

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

Color values

HEX#B42818
RGBrgb(180, 40, 24)
HSLhsl(6, 76%, 40%)
HSVhsv(6, 87%, 71%)
CMYKcmyk(0%, 77.8%, 86.7%, 29.4%)
CIE-LABlab(40.06, 54.49, 43.86)
CIE-LCHlch(40.06, 69.95, 38.84°)
OKLaboklab(50.43% 0.1538 0.0907)
OKLCHoklch(50.43% 0.179 30.5)
XYZxyz(19.7485, 11.2900, 2.0033)
Luminance0.1129 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B42818 #18A4B4
analogous
#B41856 #B42818 #B47618
triadic
#B42818 #18B428 #2818B4
tetradic
#B42818 #56B418 #18A4B4 #7618B4
square
#B42818 #56B418 #18A4B4 #7618B4
split-complementary
#B42818 #18B476 #1856B4
monochromatic
#48100A #7E1C11 #B42818 #E23A27 #E96B5D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B42818#FFFFFF#000000##FFFFFF
##B428181.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)
#554B14
Deuteranopia (green-blind)
#77690E
Tritanopia (blue-blind)
#C70026
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #b42818;
/* rgb */ color: rgb(180, 40, 24);
/* oklch */ color: oklch(50.4% 0.179 30.5);
Tailwind
colors: {
  custom: {
    50: '#d56e58',
    500: '#b42818',
    950: '#000000',
  },
}
SCSS
$custom: #b42818;
$custom-light: #d56e58;
$custom-dark: #000000;
JSON
{
  "hex": "#b42818",
  "rgb": {
    "r": 180,
    "g": 40,
    "b": 24
  },
  "hsl": {
    "h": 6.154,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.50426,
    "c": 0.17857,
    "h": 30.5
  },
  "luminance": 0.11287
}

Semantic roles & 50–950 ramp

primary
#B42818
secondary
#5BC1CD
accent
#E0F335
background
#FEF7F5
surface
#FDEDE9
border
#D5C8C5
text
#160803
muted
#847B78

Preview Lab

Preview with #B42818

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

Preview Lab → · Contrast checker → · Palette generator →

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