#7F172C#7F172C

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

Color values

HEX#7F172C
RGBrgb(127, 23, 44)
HSLhsl(348, 69%, 29%)
HSVhsv(348, 82%, 50%)
CMYKcmyk(0%, 81.9%, 65.4%, 50.2%)
CIE-LABlab(27.60, 44.25, 15.40)
CIE-LCHlch(27.60, 46.85, 19.18°)
OKLaboklab(39.32% 0.1324 0.0372)
OKLCHoklch(39.32% 0.138 15.7)
XYZxyz(9.5144, 5.3081, 2.9060)
Luminance0.0531 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F172C #177F6A
analogous
#7F1760 #7F172C #7F3617
triadic
#7F172C #2C7F17 #172C7F
tetradic
#7F172C #607F17 #177F6A #36177F
square
#7F172C #607F17 #177F6A #36177F
split-complementary
#7F172C #177F36 #17607F
monochromatic
#1A0509 #4B0E1A #7F172C #B3203E #DB3657

Accessibility & contrast

On white

10.19
#7F172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F172C
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F172C#FFFFFF#000000##FFFFFF
##7F172C1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35332C
Deuteranopia (green-blind)
#504929
Tritanopia (blue-blind)
#8C0020
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f172c;
/* rgb */ color: rgb(127, 23, 44);
/* oklch */ color: oklch(39.3% 0.138 15.7);
Tailwind
colors: {
  custom: {
    50: '#ab6064',
    500: '#7f172c',
    950: '#000000',
  },
}
SCSS
$custom: #7f172c;
$custom-light: #ab6064;
$custom-dark: #000000;
JSON
{
  "hex": "#7f172c",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 347.885,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39318,
    "c": 0.13752,
    "h": 15.7
  },
  "luminance": 0.05307
}

Semantic roles & 50–950 ramp

primary
#7F172C
secondary
#3EB49C
accent
#ECC93C
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110505
muted
#80797A

Preview Lab

Preview with #7F172C

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

Preview Lab → · Contrast checker → · Palette generator →

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