#B5312B#B5312B

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

Color values

HEX#B5312B
RGBrgb(181, 49, 43)
HSLhsl(3, 62%, 44%)
HSVhsv(3, 76%, 71%)
CMYKcmyk(0%, 72.9%, 76.2%, 29%)
CIE-LABlab(41.53, 52.33, 35.26)
CIE-LCHlch(41.53, 63.11, 33.97°)
OKLaboklab(51.61% 0.1506 0.0784)
OKLCHoklch(51.61% 0.17 27.5)
XYZxyz(20.5928, 12.1980, 3.5552)
Luminance0.1220 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5312B #2BAFB5
analogous
#B52B6A #B5312B #B5762B
triadic
#B5312B #2BB531 #312BB5
tetradic
#B5312B #6AB52B #2BAFB5 #762BB5
square
#B5312B #6AB52B #2BAFB5 #762BB5
split-complementary
#B5312B #2BB576 #2B6AB5
monochromatic
#521614 #84241F #B5312B #D44F49 #E07F7B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5312B#FFFFFF#000000##FFFFFF
##B5312B1.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)
#585029
Deuteranopia (green-blind)
#796C26
Tritanopia (blue-blind)
#C70031
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #b5312b;
/* rgb */ color: rgb(181, 49, 43);
/* oklch */ color: oklch(51.6% 0.170 27.5);
Tailwind
colors: {
  custom: {
    50: '#d47365',
    500: '#b5312b',
    950: '#000000',
  },
}
SCSS
$custom: #b5312b;
$custom-light: #d47365;
$custom-dark: #000000;
JSON
{
  "hex": "#b5312b",
  "rgb": {
    "r": 181,
    "g": 49,
    "b": 43
  },
  "hsl": {
    "h": 2.609,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.51608,
    "c": 0.16978,
    "h": 27.5
  },
  "luminance": 0.12195
}

Semantic roles & 50–950 ramp

primary
#B5312B
secondary
#74C4C8
accent
#DEE543
background
#FEF7F6
surface
#FCEDEB
border
#D5C8C6
text
#160905
muted
#847B7A

Preview Lab

Preview with #B5312B

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

Preview Lab → · Contrast checker → · Palette generator →

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