#7F172E#7F172E

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

Color values

HEX#7F172E
RGBrgb(127, 23, 46)
HSLhsl(347, 69%, 29%)
HSVhsv(347, 82%, 50%)
CMYKcmyk(0%, 81.9%, 63.8%, 50.2%)
CIE-LABlab(27.64, 44.38, 14.11)
CIE-LCHlch(27.64, 46.57, 17.64°)
OKLaboklab(39.36% 0.1332 0.0344)
OKLCHoklch(39.36% 0.138 14.5)
XYZxyz(9.5529, 5.3235, 3.1088)
Luminance0.0532 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F172E #177F68
analogous
#7F1762 #7F172E #7F3417
triadic
#7F172E #2E7F17 #172E7F
tetradic
#7F172E #627F17 #177F68 #34177F
square
#7F172E #627F17 #177F68 #34177F
split-complementary
#7F172E #177F34 #17627F
monochromatic
#1A0509 #4B0E1B #7F172E #B32041 #DB365A

Accessibility & contrast

On white

10.17
#7F172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F172E
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F172E#FFFFFF#000000##FFFFFF
##7F172E1.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f172e;
/* rgb */ color: rgb(127, 23, 46);
/* oklch */ color: oklch(39.4% 0.138 14.5);
Tailwind
colors: {
  custom: {
    50: '#ab6066',
    500: '#7f172e',
    950: '#000000',
  },
}
SCSS
$custom: #7f172e;
$custom-light: #ab6066;
$custom-dark: #000000;
JSON
{
  "hex": "#7f172e",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 346.731,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39363,
    "c": 0.1376,
    "h": 14.5
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#7F172E
secondary
#3EB49A
accent
#ECC53C
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110505
muted
#80797A

Preview Lab

Preview with #7F172E

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

Preview Lab → · Contrast checker → · Palette generator →

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