#7F1817#7F1817

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

Color values

HEX#7F1817
RGBrgb(127, 24, 23)
HSLhsl(1, 69%, 29%)
HSVhsv(1, 82%, 50%)
CMYKcmyk(0%, 81.1%, 81.9%, 50.2%)
CIE-LABlab(27.38, 42.89, 28.69)
CIE-LCHlch(27.38, 51.60, 33.77°)
OKLaboklab(39.05% 0.1232 0.0624)
OKLCHoklch(39.05% 0.138 26.9)
XYZxyz(9.2348, 5.2286, 1.3334)
Luminance0.0523 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1817 #177E7F
analogous
#7F174A #7F1817 #7F4C17
triadic
#7F1817 #177F18 #18177F
tetradic
#7F1817 #4A7F17 #177E7F #4C177F
square
#7F1817 #4A7F17 #177E7F #4C177F
split-complementary
#7F1817 #177F4C #174A7F
monochromatic
#1A0505 #4B0E0E #7F1817 #B32220 #DB3736

Accessibility & contrast

On white

10.27
#7F1817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1817
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1817#FFFFFF#000000##FFFFFF
##7F18171.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383215
Deuteranopia (green-blind)
#524912
Tritanopia (blue-blind)
#8C0019
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f1817;
/* rgb */ color: rgb(127, 24, 23);
/* oklch */ color: oklch(39.1% 0.138 26.9);
Tailwind
colors: {
  custom: {
    50: '#ac5f54',
    500: '#7f1817',
    950: '#000000',
  },
}
SCSS
$custom: #7f1817;
$custom-light: #ac5f54;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1817",
  "rgb": {
    "r": 127,
    "g": 24,
    "b": 23
  },
  "hsl": {
    "h": 0.577,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3905,
    "c": 0.13807,
    "h": 26.9
  },
  "luminance": 0.05227
}

Semantic roles & 50–950 ramp

primary
#7F1817
secondary
#3EB2B4
accent
#EAEC3C
background
#FBF5F4
surface
#F6EAE7
border
#D0C6C3
text
#120503
muted
#817978

Preview Lab

Preview with #7F1817

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

Preview Lab → · Contrast checker → · Palette generator →

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