#7F162E#7F162E

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

Color values

HEX#7F162E
RGBrgb(127, 22, 46)
HSLhsl(346, 70%, 29%)
HSVhsv(346, 83%, 50%)
CMYKcmyk(0%, 82.7%, 63.8%, 50.2%)
CIE-LABlab(27.53, 44.68, 13.97)
CIE-LCHlch(27.53, 46.81, 17.36°)
OKLaboklab(39.28% 0.1342 0.0341)
OKLCHoklch(39.28% 0.138 14.2)
XYZxyz(9.5335, 5.2845, 3.1023)
Luminance0.0528 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F162E #167F67
analogous
#7F1663 #7F162E #7F3316
triadic
#7F162E #2E7F16 #162E7F
tetradic
#7F162E #637F16 #167F67 #33167F
square
#7F162E #637F16 #167F67 #33167F
split-complementary
#7F162E #167F33 #16637F
monochromatic
#1A0509 #4B0D1B #7F162E #B31F41 #DC345A

Accessibility & contrast

On white

10.21
#7F162E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#7F162E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F162E
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F162E#FFFFFF#000000##FFFFFF
##7F162E1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35332E
Deuteranopia (green-blind)
#4F492B
Tritanopia (blue-blind)
#8C0021
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f162e;
/* rgb */ color: rgb(127, 22, 46);
/* oklch */ color: oklch(39.3% 0.138 14.2);
Tailwind
colors: {
  custom: {
    50: '#ab5f66',
    500: '#7f162e',
    950: '#000000',
  },
}
SCSS
$custom: #7f162e;
$custom-light: #ab5f66;
$custom-dark: #000000;
JSON
{
  "hex": "#7f162e",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 46
  },
  "hsl": {
    "h": 346.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39284,
    "c": 0.13846,
    "h": 14.2
  },
  "luminance": 0.05283
}

Semantic roles & 50–950 ramp

primary
#7F162E
secondary
#3DB499
accent
#EDC43B
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110505
muted
#80797A

Preview Lab

Preview with #7F162E

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

Preview Lab → · Contrast checker → · Palette generator →

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