#7A172B#7A172B

#7A172B is a dark, vivid red. Relative luminance 0.049; OKLCH L 38.3% C 0.132 H 15.4°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#7A172B
RGBrgb(122, 23, 43)
HSLhsl(348, 68%, 28%)
HSVhsv(348, 81%, 48%)
CMYKcmyk(0%, 81.1%, 64.8%, 52.2%)
CIE-LABlab(26.52, 42.64, 14.47)
CIE-LCHlch(26.52, 45.03, 18.74°)
OKLaboklab(38.33% 0.1277 0.0351)
OKLCHoklch(38.33% 0.132 15.4)
XYZxyz(8.7694, 4.9261, 2.7741)
Luminance0.0493 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A172B #177A66
analogous
#7A175C #7A172B #7A3417
triadic
#7A172B #2B7A17 #172B7A
tetradic
#7A172B #5C7A17 #177A66 #34177A
square
#7A172B #5C7A17 #177A66 #34177A
split-complementary
#7A172B #177A34 #175C7A
monochromatic
#1A0509 #470D19 #7A172B #AD213D #D93354

Accessibility & contrast

On white

10.58
#7A172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A172B
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A172B#FFFFFF#000000##FFFFFF
##7A172B1.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a172b;
/* rgb */ color: rgb(122, 23, 43);
/* oklch */ color: oklch(38.3% 0.132 15.4);
Tailwind
colors: {
  custom: {
    50: '#a75f64',
    500: '#7a172b',
    950: '#000000',
  },
}
SCSS
$custom: #7a172b;
$custom-light: #a75f64;
$custom-dark: #000000;
JSON
{
  "hex": "#7a172b",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 347.879,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38331,
    "c": 0.13247,
    "h": 15.4
  },
  "luminance": 0.04925
}

Semantic roles & 50–950 ramp

primary
#7A172B
secondary
#3EAF98
accent
#EBC83D
background
#FBF5F5
surface
#F5EAEA
border
#CFC6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7A172B

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

Preview Lab → · Contrast checker → · Palette generator →

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