#7A172C#7A172C

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

Color values

HEX#7A172C
RGBrgb(122, 23, 44)
HSLhsl(347, 68%, 28%)
HSVhsv(347, 81%, 48%)
CMYKcmyk(0%, 81.1%, 63.9%, 52.2%)
CIE-LABlab(26.54, 42.71, 13.82)
CIE-LCHlch(26.54, 44.89, 17.93°)
OKLaboklab(38.35% 0.1282 0.0337)
OKLCHoklch(38.35% 0.133 14.7)
XYZxyz(8.7880, 4.9335, 2.8719)
Luminance0.0493 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A172C #177A65
analogous
#7A175D #7A172C #7A3317
triadic
#7A172C #2C7A17 #172C7A
tetradic
#7A172C #5D7A17 #177A65 #33177A
square
#7A172C #5D7A17 #177A65 #33177A
split-complementary
#7A172C #177A33 #175D7A
monochromatic
#1A0509 #470D19 #7A172C #AD213F #D93356

Accessibility & contrast

On white

10.57
#7A172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A172C
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A172C#FFFFFF#000000##FFFFFF
##7A172C1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33322C
Deuteranopia (green-blind)
#4C4629
Tritanopia (blue-blind)
#860020
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7a172c;
/* rgb */ color: rgb(122, 23, 44);
/* oklch */ color: oklch(38.4% 0.133 14.7);
Tailwind
colors: {
  custom: {
    50: '#a75f64',
    500: '#7a172c',
    950: '#000000',
  },
}
SCSS
$custom: #7a172c;
$custom-light: #a75f64;
$custom-dark: #000000;
JSON
{
  "hex": "#7a172c",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 347.273,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38354,
    "c": 0.13251,
    "h": 14.7
  },
  "luminance": 0.04932
}

Semantic roles & 50–950 ramp

primary
#7A172C
secondary
#3EAF97
accent
#EBC63D
background
#FAF5F6
surface
#F5EAEB
border
#CFC6C6
text
#110505
muted
#80797A

Preview Lab

Preview with #7A172C

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

Preview Lab → · Contrast checker → · Palette generator →

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