#B12731#B12731

#B12731 is a mid, vivid red. Relative luminance 0.110; OKLCH L 50.1% C 0.173 H 22.7°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#B12731
RGBrgb(177, 39, 49)
HSLhsl(356, 64%, 42%)
HSVhsv(356, 78%, 69%)
CMYKcmyk(0%, 78%, 72.3%, 30.6%)
CIE-LABlab(39.62, 54.72, 29.35)
CIE-LCHlch(39.62, 62.10, 28.21°)
OKLaboklab(50.07% 0.16 0.0671)
OKLCHoklch(50.07% 0.173 22.7)
XYZxyz(19.4136, 11.0229, 4.0106)
Luminance0.1102 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B12731 #27B1A7
analogous
#B12776 #B12731 #B16227
triadic
#B12731 #31B127 #2731B1
tetradic
#B12731 #76B127 #27B1A7 #6227B1
square
#B12731 #76B127 #27B1A7 #6227B1
split-complementary
#B12731 #27B162 #2776B1
monochromatic
#4D1115 #7F1C23 #B12731 #D5404B #E0727A

Accessibility & contrast

On white

6.55
#B12731 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#B12731 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B12731
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B12731#FFFFFF#000000##FFFFFF
##B127311.006.553.206.55
#FFFFFF6.551.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#514A30
Deuteranopia (green-blind)
#73682C
Tritanopia (blue-blind)
#C3002C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #b12731;
/* rgb */ color: rgb(177, 39, 49);
/* oklch */ color: oklch(50.1% 0.173 22.7);
Tailwind
colors: {
  custom: {
    50: '#d16e69',
    500: '#b12731',
    950: '#000000',
  },
}
SCSS
$custom: #b12731;
$custom-light: #d16e69;
$custom-dark: #000000;
JSON
{
  "hex": "#b12731",
  "rgb": {
    "r": 177,
    "g": 39,
    "b": 49
  },
  "hsl": {
    "h": 355.652,
    "s": 63.889,
    "l": 42.353
  },
  "oklch": {
    "l": 0.50071,
    "c": 0.17348,
    "h": 22.7
  },
  "luminance": 0.1102
}

Semantic roles & 50–950 ramp

primary
#B12731
secondary
#6DC7C1
accent
#E7DB41
background
#FEF7F6
surface
#FCEDEB
border
#D5C8C6
text
#160806
muted
#847B7A

Preview Lab

Preview with #B12731

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

Preview Lab → · Contrast checker → · Palette generator →

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