#7F172B#7F172B

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

Color values

HEX#7F172B
RGBrgb(127, 23, 43)
HSLhsl(348, 69%, 29%)
HSVhsv(348, 82%, 50%)
CMYKcmyk(0%, 81.9%, 66.1%, 50.2%)
CIE-LABlab(27.57, 44.19, 16.04)
CIE-LCHlch(27.57, 47.01, 19.95°)
OKLaboklab(39.3% 0.132 0.0386)
OKLCHoklch(39.3% 0.137 16.3)
XYZxyz(9.4959, 5.3007, 2.8082)
Luminance0.0530 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F172B #177F6B
analogous
#7F175F #7F172B #7F3717
triadic
#7F172B #2B7F17 #172B7F
tetradic
#7F172B #5F7F17 #177F6B #37177F
square
#7F172B #5F7F17 #177F6B #37177F
split-complementary
#7F172B #177F37 #175F7F
monochromatic
#1A0509 #4B0E19 #7F172B #B3203D #DB3656

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F172B#FFFFFF#000000##FFFFFF
##7F172B1.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)
#36332B
Deuteranopia (green-blind)
#504928
Tritanopia (blue-blind)
#8C0020
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f172b;
/* rgb */ color: rgb(127, 23, 43);
/* oklch */ color: oklch(39.3% 0.137 16.3);
Tailwind
colors: {
  custom: {
    50: '#ab6064',
    500: '#7f172b',
    950: '#000000',
  },
}
SCSS
$custom: #7f172b;
$custom-light: #ab6064;
$custom-dark: #000000;
JSON
{
  "hex": "#7f172b",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 348.462,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39296,
    "c": 0.13748,
    "h": 16.3
  },
  "luminance": 0.05299
}

Semantic roles & 50–950 ramp

primary
#7F172B
secondary
#3EB49D
accent
#ECCA3C
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7F172B

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

Preview Lab → · Contrast checker → · Palette generator →

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