#7B1F12#7B1F12

#7B1F12 is a dark, vivid red. Relative luminance 0.052; OKLCH L 38.9% C 0.129 H 31.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#7B1F12
RGBrgb(123, 31, 18)
HSLhsl(7, 74%, 28%)
HSVhsv(7, 85%, 48%)
CMYKcmyk(0%, 74.8%, 85.4%, 51.8%)
CIE-LABlab(27.40, 38.87, 31.31)
CIE-LCHlch(27.40, 49.91, 38.85°)
OKLaboklab(38.9% 0.11 0.0667)
OKLCHoklch(38.9% 0.129 31.2)
XYZxyz(8.7686, 5.2360, 1.1211)
Luminance0.0524 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B1F12 #126E7B
analogous
#7B1239 #7B1F12 #7B5412
triadic
#7B1F12 #127B1F #1F127B
tetradic
#7B1F12 #397B12 #126E7B #54127B
square
#7B1F12 #397B12 #126E7B #54127B
split-complementary
#7B1F12 #127B54 #12397B
monochromatic
#1B0704 #46120A #7B1F12 #B02C1A #E03F28

Accessibility & contrast

On white

10.26
#7B1F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#7B1F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B1F12
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B1F12#FFFFFF#000000##FFFFFF
##7B1F121.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B340F
Deuteranopia (green-blind)
#51480D
Tritanopia (blue-blind)
#88001D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7b1f12;
/* rgb */ color: rgb(123, 31, 18);
/* oklch */ color: oklch(38.9% 0.129 31.2);
Tailwind
colors: {
  custom: {
    50: '#a96251',
    500: '#7b1f12',
    950: '#000000',
  },
}
SCSS
$custom: #7b1f12;
$custom-light: #a96251;
$custom-dark: #000000;
JSON
{
  "hex": "#7b1f12",
  "rgb": {
    "r": 123,
    "g": 31,
    "b": 18
  },
  "hsl": {
    "h": 7.429,
    "s": 74.468,
    "l": 27.647
  },
  "oklch": {
    "l": 0.389,
    "c": 0.12865,
    "h": 31.2
  },
  "luminance": 0.05235
}

Semantic roles & 50–950 ramp

primary
#7B1F12
secondary
#38A2B1
accent
#DAF137
background
#FBF6F4
surface
#F6EBE7
border
#D0C6C3
text
#110502
muted
#807A78

Preview Lab

Preview with #7B1F12

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

Preview Lab → · Contrast checker → · Palette generator →

#7B1F12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva