#7F181F#7F181F

#7F181F is a dark, vivid red. Relative luminance 0.053; OKLCH L 39.2% C 0.137 H 23.2°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#7F181F
RGBrgb(127, 24, 31)
HSLhsl(356, 68%, 30%)
HSVhsv(356, 81%, 50%)
CMYKcmyk(0%, 81.1%, 75.6%, 50.2%)
CIE-LABlab(27.48, 43.22, 23.81)
CIE-LCHlch(27.48, 49.35, 28.86°)
OKLaboklab(39.16% 0.1261 0.054)
OKLCHoklch(39.16% 0.137 23.2)
XYZxyz(9.3274, 5.2657, 1.8213)
Luminance0.0526 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F181F #187F78
analogous
#7F1853 #7F181F #7F4418
triadic
#7F181F #1F7F18 #181F7F
tetradic
#7F181F #537F18 #187F78 #44187F
square
#7F181F #537F18 #187F78 #44187F
split-complementary
#7F181F #187F44 #18537F
monochromatic
#1A0506 #4C0E12 #7F181F #B2222C #D93843

Accessibility & contrast

On white

10.23
#7F181F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F181F
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F181F#FFFFFF#000000##FFFFFF
##7F181F1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38331E
Deuteranopia (green-blind)
#51491B
Tritanopia (blue-blind)
#8C001C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f181f;
/* rgb */ color: rgb(127, 24, 31);
/* oklch */ color: oklch(39.2% 0.137 23.2);
Tailwind
colors: {
  custom: {
    50: '#ac605a',
    500: '#7f181f',
    950: '#000000',
  },
}
SCSS
$custom: #7f181f;
$custom-light: #ac605a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f181f",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 31
  },
  "hsl": {
    "h": 355.922,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.39159,
    "c": 0.13716,
    "h": 23.2
  },
  "luminance": 0.05264
}

Semantic roles & 50–950 ramp

primary
#7F181F
secondary
#3FB3AB
accent
#EBDF3D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120504
muted
#817979

Preview Lab

Preview with #7F181F

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

Preview Lab → · Contrast checker → · Palette generator →

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