#7F162B#7F162B

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

Color values

HEX#7F162B
RGBrgb(127, 22, 43)
HSLhsl(348, 70%, 29%)
HSVhsv(348, 83%, 50%)
CMYKcmyk(0%, 82.7%, 66.1%, 50.2%)
CIE-LABlab(27.47, 44.49, 15.90)
CIE-LCHlch(27.47, 47.24, 19.67°)
OKLaboklab(39.22% 0.1329 0.0383)
OKLCHoklch(39.22% 0.138 16.1)
XYZxyz(9.4764, 5.2617, 2.8017)
Luminance0.0526 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F162B #167F6A
analogous
#7F1660 #7F162B #7F3616
triadic
#7F162B #2B7F16 #162B7F
tetradic
#7F162B #607F16 #167F6A #36167F
square
#7F162B #607F16 #167F6A #36167F
split-complementary
#7F162B #167F36 #16607F
monochromatic
#1A0509 #4B0D19 #7F162B #B31F3D #DC3455

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F162B#FFFFFF#000000##FFFFFF
##7F162B1.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)
#35332B
Deuteranopia (green-blind)
#504928
Tritanopia (blue-blind)
#8C001F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f162b;
/* rgb */ color: rgb(127, 22, 43);
/* oklch */ color: oklch(39.2% 0.138 16.1);
Tailwind
colors: {
  custom: {
    50: '#ab5f64',
    500: '#7f162b',
    950: '#000000',
  },
}
SCSS
$custom: #7f162b;
$custom-light: #ab5f64;
$custom-dark: #000000;
JSON
{
  "hex": "#7f162b",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 43
  },
  "hsl": {
    "h": 348,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39217,
    "c": 0.13834,
    "h": 16.1
  },
  "luminance": 0.0526
}

Semantic roles & 50–950 ramp

primary
#7F162B
secondary
#3DB49C
accent
#EDCA3B
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7F162B

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

Preview Lab → · Contrast checker → · Palette generator →

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