#B5312A#B5312A

#B5312A is a mid, vivid red. Relative luminance 0.122; OKLCH L 51.6% C 0.170 H 27.8°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#B5312A
RGBrgb(181, 49, 42)
HSLhsl(3, 62%, 44%)
HSVhsv(3, 77%, 71%)
CMYKcmyk(0%, 72.9%, 76.8%, 29%)
CIE-LABlab(41.52, 52.30, 35.82)
CIE-LCHlch(41.52, 63.39, 34.41°)
OKLaboklab(51.6% 0.1503 0.0793)
OKLCHoklch(51.6% 0.17 27.8)
XYZxyz(20.5747, 12.1907, 3.4597)
Luminance0.1219 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5312A #2AAEB5
analogous
#B52A68 #B5312A #B5762A
triadic
#B5312A #2AB531 #312AB5
tetradic
#B5312A #68B52A #2AAEB5 #762AB5
square
#B5312A #68B52A #2AAEB5 #762AB5
split-complementary
#B5312A #2AB576 #2A68B5
monochromatic
#521613 #83241E #B5312A #D44F48 #E07F79

Accessibility & contrast

On white

6.11
#B5312A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#B5312A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5312A
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5312A#FFFFFF#000000##FFFFFF
##B5312A1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#585028
Deuteranopia (green-blind)
#796C25
Tritanopia (blue-blind)
#C70031
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b5312a;
/* rgb */ color: rgb(181, 49, 42);
/* oklch */ color: oklch(51.6% 0.170 27.8);
Tailwind
colors: {
  custom: {
    50: '#d47364',
    500: '#b5312a',
    950: '#000000',
  },
}
SCSS
$custom: #b5312a;
$custom-light: #d47364;
$custom-dark: #000000;
JSON
{
  "hex": "#b5312a",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 42
  },
  "hsl": {
    "h": 3.022,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.51596,
    "c": 0.16992,
    "h": 27.8
  },
  "luminance": 0.12188
}

Semantic roles & 50–950 ramp

primary
#B5312A
secondary
#73C4C8
accent
#DDE542
background
#FEF7F6
surface
#FCEDEB
border
#D5C8C6
text
#160905
muted
#847B7A

Preview Lab

Preview with #B5312A

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

Preview Lab → · Contrast checker → · Palette generator →

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