#6B171F#6B171F

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

Color values

HEX#6B171F
RGBrgb(107, 23, 31)
HSLhsl(354, 65%, 25%)
HSVhsv(354, 79%, 42%)
CMYKcmyk(0%, 78.5%, 71%, 58%)
CIE-LABlab(23.13, 37.03, 17.59)
CIE-LCHlch(23.13, 41.00, 25.41°)
OKLaboklab(35.17% 0.1093 0.0413)
OKLCHoklch(35.17% 0.117 20.7)
XYZxyz(6.6178, 3.8385, 1.6885)
Luminance0.0384 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B171F #176B63
analogous
#6B1749 #6B171F #6B3917
triadic
#6B171F #1F6B17 #171F6B
tetradic
#6B171F #496B17 #176B63 #39176B
square
#6B171F #496B17 #176B63 #39176B
split-complementary
#6B171F #176B39 #17496B
monochromatic
#190507 #390C10 #6B171F #9D222E #D02D3C

Accessibility & contrast

On white

11.88
#6B171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #6B171F
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B171F#FFFFFF#000000##FFFFFF
##6B171F1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2C1F
Deuteranopia (green-blind)
#443E1C
Tritanopia (blue-blind)
#76001B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #6b171f;
/* rgb */ color: rgb(107, 23, 31);
/* oklch */ color: oklch(35.2% 0.117 20.7);
Tailwind
colors: {
  custom: {
    50: '#9c5c5a',
    500: '#6b171f',
    950: '#000000',
  },
}
SCSS
$custom: #6b171f;
$custom-light: #9c5c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#6b171f",
  "rgb": {
    "r": 107,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 354.286,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35172,
    "c": 0.11681,
    "h": 20.7
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#6B171F
secondary
#3DA198
accent
#E8D840
background
#FAF5F5
surface
#F4E9E9
border
#CEC5C5
text
#0F0403
muted
#7F7978

Preview Lab

Preview with #6B171F

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

Preview Lab → · Contrast checker → · Palette generator →

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