#7F181B#7F181B

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

Color values

HEX#7F181B
RGBrgb(127, 24, 27)
HSLhsl(358, 68%, 30%)
HSVhsv(358, 81%, 50%)
CMYKcmyk(0%, 81.1%, 78.7%, 50.2%)
CIE-LABlab(27.42, 43.05, 26.29)
CIE-LCHlch(27.42, 50.44, 31.41°)
OKLaboklab(39.1% 0.1246 0.0584)
OKLCHoklch(39.1% 0.138 25.1)
XYZxyz(9.2780, 5.2459, 1.5607)
Luminance0.0524 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F181B #187F7C
analogous
#7F184F #7F181B #7F4818
triadic
#7F181B #1B7F18 #181B7F
tetradic
#7F181B #4F7F18 #187F7C #48187F
square
#7F181B #4F7F18 #187F7C #48187F
split-complementary
#7F181B #187F48 #184F7F
monochromatic
#1A0505 #4C0E10 #7F181B #B22226 #D9383D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F181B#FFFFFF#000000##FFFFFF
##7F181B1.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)
#38331A
Deuteranopia (green-blind)
#514917
Tritanopia (blue-blind)
#8C001B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f181b;
/* rgb */ color: rgb(127, 24, 27);
/* oklch */ color: oklch(39.1% 0.138 25.1);
Tailwind
colors: {
  custom: {
    50: '#ac6057',
    500: '#7f181b',
    950: '#000000',
  },
}
SCSS
$custom: #7f181b;
$custom-light: #ac6057;
$custom-dark: #000000;
JSON
{
  "hex": "#7f181b",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 27
  },
  "hsl": {
    "h": 358.252,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39101,
    "c": 0.13758,
    "h": 25.1
  },
  "luminance": 0.05244
}

Semantic roles & 50–950 ramp

primary
#7F181B
secondary
#3FB3B0
accent
#EBE63D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7F181B

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

Preview Lab → · Contrast checker → · Palette generator →

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