#7F172A#7F172A

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

Color values

HEX#7F172A
RGBrgb(127, 23, 42)
HSLhsl(349, 69%, 29%)
HSVhsv(349, 82%, 50%)
CMYKcmyk(0%, 81.9%, 66.9%, 50.2%)
CIE-LABlab(27.55, 44.12, 16.68)
CIE-LCHlch(27.55, 47.17, 20.71°)
OKLaboklab(39.28% 0.1315 0.0399)
OKLCHoklch(39.28% 0.137 16.9)
XYZxyz(9.4777, 5.2934, 2.7127)
Luminance0.0529 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F172A #177F6C
analogous
#7F175E #7F172A #7F3817
triadic
#7F172A #2A7F17 #172A7F
tetradic
#7F172A #5E7F17 #177F6C #38177F
square
#7F172A #5E7F17 #177F6C #38177F
split-complementary
#7F172A #177F38 #175E7F
monochromatic
#1A0509 #4B0E19 #7F172A #B3203B #DB3654

Accessibility & contrast

On white

10.20
#7F172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F172A
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F172A#FFFFFF#000000##FFFFFF
##7F172A1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36332A
Deuteranopia (green-blind)
#504927
Tritanopia (blue-blind)
#8C001F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f172a;
/* rgb */ color: rgb(127, 23, 42);
/* oklch */ color: oklch(39.3% 0.137 16.9);
Tailwind
colors: {
  custom: {
    50: '#ab6063',
    500: '#7f172a',
    950: '#000000',
  },
}
SCSS
$custom: #7f172a;
$custom-light: #ab6063;
$custom-dark: #000000;
JSON
{
  "hex": "#7f172a",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 349.038,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39275,
    "c": 0.13747,
    "h": 16.9
  },
  "luminance": 0.05292
}

Semantic roles & 50–950 ramp

primary
#7F172A
secondary
#3EB49E
accent
#ECCC3C
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7F172A

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

Preview Lab → · Contrast checker → · Palette generator →

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