#7F151F#7F151F

#7F151F is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.9% C 0.140 H 22.4°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#7F151F
RGBrgb(127, 21, 31)
HSLhsl(354, 72%, 29%)
HSVhsv(354, 83%, 50%)
CMYKcmyk(0%, 83.5%, 75.6%, 50.2%)
CIE-LABlab(27.15, 44.13, 23.44)
CIE-LCHlch(27.15, 49.97, 27.97°)
OKLaboklab(38.92% 0.129 0.0532)
OKLCHoklch(38.92% 0.14 22.4)
XYZxyz(9.2690, 5.1488, 1.8018)
Luminance0.0515 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F151F #157F75
analogous
#7F1554 #7F151F #7F4015
triadic
#7F151F #1F7F15 #151F7F
tetradic
#7F151F #547F15 #157F75 #40157F
square
#7F151F #547F15 #157F75 #40157F
split-complementary
#7F151F #157F40 #15547F
monochromatic
#1A0406 #4A0C12 #7F151F #B41E2C #DD3142

Accessibility & contrast

On white

10.35
#7F151F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#7F151F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F151F
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F151F#FFFFFF#000000##FFFFFF
##7F151F1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36321E
Deuteranopia (green-blind)
#51481B
Tritanopia (blue-blind)
#8C001A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7f151f;
/* rgb */ color: rgb(127, 21, 31);
/* oklch */ color: oklch(38.9% 0.140 22.4);
Tailwind
colors: {
  custom: {
    50: '#ac5f5a',
    500: '#7f151f',
    950: '#000000',
  },
}
SCSS
$custom: #7f151f;
$custom-light: #ac5f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f151f",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 31
  },
  "hsl": {
    "h": 354.34,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.38918,
    "c": 0.13953,
    "h": 22.4
  },
  "luminance": 0.05147
}

Semantic roles & 50–950 ramp

primary
#7F151F
secondary
#3CB4A9
accent
#EEDD39
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120504
muted
#817979

Preview Lab

Preview with #7F151F

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

Preview Lab → · Contrast checker → · Palette generator →

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