#7F1218#7F1218

#7F1218 is a dark, vivid red. Relative luminance 0.050; OKLCH L 38.6% C 0.142 H 24.9°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#7F1218
RGBrgb(127, 18, 24)
HSLhsl(357, 75%, 28%)
HSVhsv(357, 86%, 50%)
CMYKcmyk(0%, 85.8%, 81.1%, 50.2%)
CIE-LABlab(26.77, 44.68, 27.45)
CIE-LCHlch(26.77, 52.43, 31.56°)
OKLaboklab(38.6% 0.1291 0.06)
OKLCHoklch(38.6% 0.142 24.9)
XYZxyz(9.1347, 5.0121, 1.3504)
Luminance0.0501 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1218 #127F79
analogous
#7F124E #7F1218 #7F4212
triadic
#7F1218 #187F12 #12187F
tetradic
#7F1218 #4E7F12 #127F79 #42127F
square
#7F1218 #4E7F12 #127F79 #42127F
split-complementary
#7F1218 #127F42 #124E7F
monochromatic
#1B0405 #490A0E #7F1218 #B51A22 #E12B35

Accessibility & contrast

On white

10.49
#7F1218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#7F1218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1218
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1218#FFFFFF#000000##FFFFFF
##7F12181.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363017
Deuteranopia (green-blind)
#504813
Tritanopia (blue-blind)
#8D0016
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7f1218;
/* rgb */ color: rgb(127, 18, 24);
/* oklch */ color: oklch(38.6% 0.142 24.9);
Tailwind
colors: {
  custom: {
    50: '#ad5d55',
    500: '#7f1218',
    950: '#000000',
  },
}
SCSS
$custom: #7f1218;
$custom-light: #ad5d55;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1218",
  "rgb": {
    "r": 127,
    "g": 18,
    "b": 24
  },
  "hsl": {
    "h": 356.697,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38603,
    "c": 0.14231,
    "h": 24.9
  },
  "luminance": 0.05011
}

Semantic roles & 50–950 ramp

primary
#7F1218
secondary
#38B5AE
accent
#F2E736
background
#FBF5F4
surface
#F6EAE8
border
#D0C6C4
text
#120503
muted
#817978

Preview Lab

Preview with #7F1218

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

Preview Lab → · Contrast checker → · Palette generator →

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