#7F172D#7F172D

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

Color values

HEX#7F172D
RGBrgb(127, 23, 45)
HSLhsl(347, 69%, 29%)
HSVhsv(347, 82%, 50%)
CMYKcmyk(0%, 81.9%, 64.6%, 50.2%)
CIE-LABlab(27.62, 44.31, 14.75)
CIE-LCHlch(27.62, 46.70, 18.41°)
OKLaboklab(39.34% 0.1328 0.0358)
OKLCHoklch(39.34% 0.138 15.1)
XYZxyz(9.5335, 5.3157, 3.0062)
Luminance0.0531 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F172D #177F69
analogous
#7F1761 #7F172D #7F3517
triadic
#7F172D #2D7F17 #172D7F
tetradic
#7F172D #617F17 #177F69 #35177F
square
#7F172D #617F17 #177F69 #35177F
split-complementary
#7F172D #177F35 #17617F
monochromatic
#1A0509 #4B0E1B #7F172D #B3203F #DB3659

Accessibility & contrast

On white

10.18
#7F172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F172D
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F172D#FFFFFF#000000##FFFFFF
##7F172D1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35332D
Deuteranopia (green-blind)
#50492A
Tritanopia (blue-blind)
#8C0021
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f172d;
/* rgb */ color: rgb(127, 23, 45);
/* oklch */ color: oklch(39.3% 0.138 15.1);
Tailwind
colors: {
  custom: {
    50: '#ab6065',
    500: '#7f172d',
    950: '#000000',
  },
}
SCSS
$custom: #7f172d;
$custom-light: #ab6065;
$custom-dark: #000000;
JSON
{
  "hex": "#7f172d",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 347.308,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3934,
    "c": 0.13755,
    "h": 15.1
  },
  "luminance": 0.05314
}

Semantic roles & 50–950 ramp

primary
#7F172D
secondary
#3EB49B
accent
#ECC73C
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110505
muted
#80797A

Preview Lab

Preview with #7F172D

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

Preview Lab → · Contrast checker → · Palette generator →

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