#7F1F12#7F1F12

#7F1F12 is a dark, vivid red. Relative luminance 0.055; OKLCH L 39.7% C 0.133 H 31.1°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#7F1F12
RGBrgb(127, 31, 18)
HSLhsl(7, 75%, 28%)
HSVhsv(7, 86%, 50%)
CMYKcmyk(0%, 75.6%, 85.8%, 50.2%)
CIE-LABlab(28.21, 40.26, 32.37)
CIE-LCHlch(28.21, 51.66, 38.80°)
OKLaboklab(39.66% 0.1139 0.0686)
OKLCHoklch(39.66% 0.133 31.1)
XYZxyz(9.3527, 5.5371, 1.1485)
Luminance0.0554 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F12 #12727F
analogous
#7F123B #7F1F12 #7F5512
triadic
#7F1F12 #127F1F #1F127F
tetradic
#7F1F12 #3B7F12 #12727F #55127F
square
#7F1F12 #3B7F12 #12727F #55127F
split-complementary
#7F1F12 #127F55 #123B7F
monochromatic
#1B0704 #49120A #7F1F12 #B52C1A #E1402B

Accessibility & contrast

On white

9.97
#7F1F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7F1F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F12
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F12#FFFFFF#000000##FFFFFF
##7F1F121.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C350F
Deuteranopia (green-blind)
#544A0D
Tritanopia (blue-blind)
#8D001D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7f1f12;
/* rgb */ color: rgb(127, 31, 18);
/* oklch */ color: oklch(39.7% 0.133 31.1);
Tailwind
colors: {
  custom: {
    50: '#ac6251',
    500: '#7f1f12',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f12;
$custom-light: #ac6251;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f12",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 18
  },
  "hsl": {
    "h": 7.156,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.39658,
    "c": 0.13296,
    "h": 31.1
  },
  "luminance": 0.05536
}

Semantic roles & 50–950 ramp

primary
#7F1F12
secondary
#38A6B5
accent
#DBF236
background
#FBF6F4
surface
#F6EBE7
border
#D0C6C3
text
#120502
muted
#817A78

Preview Lab

Preview with #7F1F12

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

Preview Lab → · Contrast checker → · Palette generator →

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