#7F171C#7F171C

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

Color values

HEX#7F171C
RGBrgb(127, 23, 28)
HSLhsl(357, 69%, 29%)
HSVhsv(357, 82%, 50%)
CMYKcmyk(0%, 81.9%, 78%, 50.2%)
CIE-LABlab(27.33, 43.40, 25.55)
CIE-LCHlch(27.33, 50.36, 30.48°)
OKLaboklab(39.03% 0.1259 0.0571)
OKLCHoklch(39.03% 0.138 24.4)
XYZxyz(9.2695, 5.2101, 1.6160)
Luminance0.0521 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F171C #177F7A
analogous
#7F1750 #7F171C #7F4617
triadic
#7F171C #1C7F17 #171C7F
tetradic
#7F171C #507F17 #177F7A #46177F
square
#7F171C #507F17 #177F7A #46177F
split-complementary
#7F171C #177F46 #17507F
monochromatic
#1A0506 #4B0E11 #7F171C #B32027 #DB363E

Accessibility & contrast

On white

10.29
#7F171C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#7F171C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F171C
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F171C#FFFFFF#000000##FFFFFF
##7F171C1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38321B
Deuteranopia (green-blind)
#514918
Tritanopia (blue-blind)
#8C001A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f171c;
/* rgb */ color: rgb(127, 23, 28);
/* oklch */ color: oklch(39.0% 0.138 24.4);
Tailwind
colors: {
  custom: {
    50: '#ac5f58',
    500: '#7f171c',
    950: '#000000',
  },
}
SCSS
$custom: #7f171c;
$custom-light: #ac5f58;
$custom-dark: #000000;
JSON
{
  "hex": "#7f171c",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 357.115,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39031,
    "c": 0.13826,
    "h": 24.4
  },
  "luminance": 0.05209
}

Semantic roles & 50–950 ramp

primary
#7F171C
secondary
#3EB4AE
accent
#ECE43C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7F171C

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

Preview Lab → · Contrast checker → · Palette generator →

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