#7F181A#7F181A

#7F181A is a dark, vivid red. Relative luminance 0.052; OKLCH L 39.1% C 0.138 H 25.6°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#7F181A
RGBrgb(127, 24, 26)
HSLhsl(359, 68%, 30%)
HSVhsv(359, 81%, 50%)
CMYKcmyk(0%, 81.1%, 79.5%, 50.2%)
CIE-LABlab(27.41, 43.01, 26.89)
CIE-LCHlch(27.41, 50.72, 32.02°)
OKLaboklab(39.09% 0.1242 0.0594)
OKLCHoklch(39.09% 0.138 25.6)
XYZxyz(9.2666, 5.2414, 1.5008)
Luminance0.0524 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F181A #187F7D
analogous
#7F184E #7F181A #7F4A18
triadic
#7F181A #1A7F18 #181A7F
tetradic
#7F181A #4E7F18 #187F7D #4A187F
square
#7F181A #4E7F18 #187F7D #4A187F
split-complementary
#7F181A #187F4A #184E7F
monochromatic
#1A0505 #4C0E0F #7F181A #B22225 #D9383B

Accessibility & contrast

On white

10.25
#7F181A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F181A
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F181A#FFFFFF#000000##FFFFFF
##7F181A1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383319
Deuteranopia (green-blind)
#524916
Tritanopia (blue-blind)
#8C001A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f181a;
/* rgb */ color: rgb(127, 24, 26);
/* oklch */ color: oklch(39.1% 0.138 25.6);
Tailwind
colors: {
  custom: {
    50: '#ac5f57',
    500: '#7f181a',
    950: '#000000',
  },
}
SCSS
$custom: #7f181a;
$custom-light: #ac5f57;
$custom-dark: #000000;
JSON
{
  "hex": "#7f181a",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 26
  },
  "hsl": {
    "h": 358.835,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39087,
    "c": 0.1377,
    "h": 25.6
  },
  "luminance": 0.0524
}

Semantic roles & 50–950 ramp

primary
#7F181A
secondary
#3FB3B1
accent
#EBE83D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7F181A

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

Preview Lab → · Contrast checker → · Palette generator →

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