#6A171F#6A171F

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

Color values

HEX#6A171F
RGBrgb(106, 23, 31)
HSLhsl(354, 64%, 25%)
HSVhsv(354, 78%, 42%)
CMYKcmyk(0%, 78.3%, 70.8%, 58.4%)
CIE-LABlab(22.92, 36.69, 17.28)
CIE-LCHlch(22.92, 40.56, 25.22°)
OKLaboklab(34.98% 0.1083 0.0407)
OKLCHoklch(34.98% 0.116 20.6)
XYZxyz(6.4983, 3.7769, 1.6829)
Luminance0.0378 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A171F #176A62
analogous
#6A1748 #6A171F #6A3817
triadic
#6A171F #1F6A17 #171F6A
tetradic
#6A171F #486A17 #176A62 #38176A
square
#6A171F #486A17 #176A62 #38176A
split-complementary
#6A171F #176A38 #17486A
monochromatic
#190507 #380C10 #6A171F #9C222E #CF2D3C

Accessibility & contrast

On white

11.96
#6A171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#6A171F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6A171F
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A171F#FFFFFF#000000##FFFFFF
##6A171F1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2B1F
Deuteranopia (green-blind)
#443D1C
Tritanopia (blue-blind)
#75001B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #6a171f;
/* rgb */ color: rgb(106, 23, 31);
/* oklch */ color: oklch(35.0% 0.116 20.6);
Tailwind
colors: {
  custom: {
    50: '#9b5c5a',
    500: '#6a171f',
    950: '#000000',
  },
}
SCSS
$custom: #6a171f;
$custom-light: #9b5c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#6a171f",
  "rgb": {
    "r": 106,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 354.217,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34977,
    "c": 0.1157,
    "h": 20.6
  },
  "luminance": 0.03776
}

Semantic roles & 50–950 ramp

primary
#6A171F
secondary
#3DA097
accent
#E7D740
background
#FAF5F5
surface
#F4E9E9
border
#CEC5C5
text
#0F0403
muted
#7F7978

Preview Lab

Preview with #6A171F

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

Preview Lab → · Contrast checker → · Palette generator →

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