#7F151B#7F151B

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

Color values

HEX#7F151B
RGBrgb(127, 21, 27)
HSLhsl(357, 72%, 29%)
HSVhsv(357, 83%, 50%)
CMYKcmyk(0%, 83.5%, 78.7%, 50.2%)
CIE-LABlab(27.10, 43.96, 25.93)
CIE-LCHlch(27.10, 51.04, 30.53°)
OKLaboklab(38.86% 0.1275 0.0576)
OKLCHoklch(38.86% 0.14 24.3)
XYZxyz(9.2195, 5.1290, 1.5412)
Luminance0.0513 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F151B #157F79
analogous
#7F1550 #7F151B #7F4415
triadic
#7F151B #1B7F15 #151B7F
tetradic
#7F151B #507F15 #157F79 #44157F
square
#7F151B #507F15 #157F79 #44157F
split-complementary
#7F151B #157F44 #15507F
monochromatic
#1A0406 #4A0C10 #7F151B #B41E26 #DD313B

Accessibility & contrast

On white

10.37
#7F151B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F151B
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F151B#FFFFFF#000000##FFFFFF
##7F151B1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37311A
Deuteranopia (green-blind)
#514817
Tritanopia (blue-blind)
#8C0019
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7f151b;
/* rgb */ color: rgb(127, 21, 27);
/* oklch */ color: oklch(38.9% 0.140 24.3);
Tailwind
colors: {
  custom: {
    50: '#ac5e57',
    500: '#7f151b',
    950: '#000000',
  },
}
SCSS
$custom: #7f151b;
$custom-light: #ac5e57;
$custom-dark: #000000;
JSON
{
  "hex": "#7f151b",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 27
  },
  "hsl": {
    "h": 356.604,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.38859,
    "c": 0.13989,
    "h": 24.3
  },
  "luminance": 0.05127
}

Semantic roles & 50–950 ramp

primary
#7F151B
secondary
#3CB4AD
accent
#EEE439
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7F151B

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

Preview Lab → · Contrast checker → · Palette generator →

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