#7F172F#7F172F

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

Color values

HEX#7F172F
RGBrgb(127, 23, 47)
HSLhsl(346, 69%, 29%)
HSVhsv(346, 82%, 50%)
CMYKcmyk(0%, 81.9%, 63%, 50.2%)
CIE-LABlab(27.66, 44.45, 13.47)
CIE-LCHlch(27.66, 46.44, 16.85°)
OKLaboklab(39.39% 0.1337 0.033)
OKLCHoklch(39.39% 0.138 13.9)
XYZxyz(9.5729, 5.3315, 3.2138)
Luminance0.0533 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F172F #177F67
analogous
#7F1763 #7F172F #7F3317
triadic
#7F172F #2F7F17 #172F7F
tetradic
#7F172F #637F17 #177F67 #33177F
square
#7F172F #637F17 #177F67 #33177F
split-complementary
#7F172F #177F33 #17637F
monochromatic
#1A050A #4B0E1C #7F172F #B32042 #DB365C

Accessibility & contrast

On white

10.16
#7F172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#7F172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F172F
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F172F#FFFFFF#000000##FFFFFF
##7F172F1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35342F
Deuteranopia (green-blind)
#4F492C
Tritanopia (blue-blind)
#8C0021
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f172f;
/* rgb */ color: rgb(127, 23, 47);
/* oklch */ color: oklch(39.4% 0.138 13.9);
Tailwind
colors: {
  custom: {
    50: '#ab6067',
    500: '#7f172f',
    950: '#000000',
  },
}
SCSS
$custom: #7f172f;
$custom-light: #ab6067;
$custom-dark: #000000;
JSON
{
  "hex": "#7f172f",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 346.154,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39386,
    "c": 0.13766,
    "h": 13.9
  },
  "luminance": 0.0533
}

Semantic roles & 50–950 ramp

primary
#7F172F
secondary
#3EB498
accent
#ECC33C
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110506
muted
#80797A

Preview Lab

Preview with #7F172F

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

Preview Lab → · Contrast checker → · Palette generator →

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