#6A172A#6A172A

#6A172A is a dark, moderate red. Relative luminance 0.038; OKLCH L 35.2% C 0.116 H 12.5°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#6A172A
RGBrgb(106, 23, 42)
HSLhsl(346, 64%, 25%)
HSVhsv(346, 78%, 42%)
CMYKcmyk(0%, 78.3%, 60.4%, 58.4%)
CIE-LABlab(23.15, 37.46, 10.05)
CIE-LCHlch(23.15, 38.79, 15.02°)
OKLaboklab(35.23% 0.1131 0.0251)
OKLCHoklch(35.23% 0.116 12.5)
XYZxyz(6.6688, 3.8451, 2.5811)
Luminance0.0384 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A172A #176A57
analogous
#6A1753 #6A172A #6A2D17
triadic
#6A172A #2A6A17 #172A6A
tetradic
#6A172A #536A17 #176A57 #2D176A
square
#6A172A #536A17 #176A57 #2D176A
split-complementary
#6A172A #176A2D #17536A
monochromatic
#19050A #380C16 #6A172A #9C223E #CF2D52

Accessibility & contrast

On white

11.87
#6A172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#6A172A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A172A
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A172A#FFFFFF#000000##FFFFFF
##6A172A1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2C2A
Deuteranopia (green-blind)
#423D28
Tritanopia (blue-blind)
#74001F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #6a172a;
/* rgb */ color: rgb(106, 23, 42);
/* oklch */ color: oklch(35.2% 0.116 12.5);
Tailwind
colors: {
  custom: {
    50: '#9a5c63',
    500: '#6a172a',
    950: '#000000',
  },
}
SCSS
$custom: #6a172a;
$custom-light: #9a5c63;
$custom-dark: #000000;
JSON
{
  "hex": "#6a172a",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 346.265,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35225,
    "c": 0.11583,
    "h": 12.5
  },
  "luminance": 0.03844
}

Semantic roles & 50–950 ramp

primary
#6A172A
secondary
#3DA089
accent
#E7C140
background
#FAF5F5
surface
#F3E9EA
border
#CDC5C6
text
#0F0405
muted
#7F7979

Preview Lab

Preview with #6A172A

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

Preview Lab → · Contrast checker → · Palette generator →

#6A172A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva