#7A172F#7A172F

#7A172F is a dark, vivid red. Relative luminance 0.050; OKLCH L 38.4% C 0.133 H 12.8°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#7A172F
RGBrgb(122, 23, 47)
HSLhsl(345, 68%, 28%)
HSVhsv(345, 81%, 48%)
CMYKcmyk(0%, 81.1%, 61.5%, 52.2%)
CIE-LABlab(26.61, 42.92, 11.88)
CIE-LCHlch(26.61, 44.54, 15.47°)
OKLaboklab(38.42% 0.1294 0.0294)
OKLCHoklch(38.42% 0.133 12.8)
XYZxyz(8.8464, 4.9569, 3.1797)
Luminance0.0496 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A172F #177A62
analogous
#7A1760 #7A172F #7A3117
triadic
#7A172F #2F7A17 #172F7A
tetradic
#7A172F #607A17 #177A62 #31177A
square
#7A172F #607A17 #177A62 #31177A
split-complementary
#7A172F #177A31 #17607A
monochromatic
#1A050A #470D1B #7A172F #AD2143 #D9335B

Accessibility & contrast

On white

10.55
#7A172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#7A172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A172F
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A172F#FFFFFF#000000##FFFFFF
##7A172F1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33322F
Deuteranopia (green-blind)
#4C462C
Tritanopia (blue-blind)
#860021
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7a172f;
/* rgb */ color: rgb(122, 23, 47);
/* oklch */ color: oklch(38.4% 0.133 12.8);
Tailwind
colors: {
  custom: {
    50: '#a75f67',
    500: '#7a172f',
    950: '#000000',
  },
}
SCSS
$custom: #7a172f;
$custom-light: #a75f67;
$custom-dark: #000000;
JSON
{
  "hex": "#7a172f",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 345.455,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38425,
    "c": 0.13272,
    "h": 12.8
  },
  "luminance": 0.04956
}

Semantic roles & 50–950 ramp

primary
#7A172F
secondary
#3EAF94
accent
#EBC13D
background
#FAF5F6
surface
#F4EAEB
border
#CEC6C6
text
#110506
muted
#80797A

Preview Lab

Preview with #7A172F

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

Preview Lab → · Contrast checker → · Palette generator →

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