#42170E#42170E

#42170E is a dark, moderate red. Relative luminance 0.018; OKLCH L 27.0% C 0.069 H 33.4°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#42170E
RGBrgb(66, 23, 14)
HSLhsl(10, 65%, 16%)
HSVhsv(10, 79%, 26%)
CMYKcmyk(0%, 65.2%, 78.8%, 74.1%)
CIE-LABlab(14.42, 20.17, 15.92)
CIE-LCHlch(14.42, 25.70, 38.29°)
OKLaboklab(26.99% 0.0578 0.0382)
OKLCHoklch(26.99% 0.069 33.4)
XYZxyz(2.6327, 1.8031, 0.6248)
Luminance0.0180 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42170E #0E3942
analogous
#420E1F #42170E #42310E
triadic
#42170E #0E4217 #170E42
tetradic
#42170E #1F420E #0E3942 #310E42
square
#42170E #1F420E #0E3942 #310E42
split-complementary
#42170E #0E4231 #0E1F42
monochromatic
#190905 #190905 #42170E #742919 #A73A23

Accessibility & contrast

On white

15.43
#42170E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#42170E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42170E
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42170E#FFFFFF#000000##FFFFFF
##42170E1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231F0D
Deuteranopia (green-blind)
#2D280D
Tritanopia (blue-blind)
#490E15
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #42170e;
/* rgb */ color: rgb(66, 23, 14);
/* oklch */ color: oklch(27.0% 0.069 33.4);
Tailwind
colors: {
  custom: {
    50: '#7b564d',
    500: '#42170e',
    950: '#000000',
  },
}
SCSS
$custom: #42170e;
$custom-light: #7b564d;
$custom-dark: #000000;
JSON
{
  "hex": "#42170e",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 14
  },
  "hsl": {
    "h": 10.385,
    "s": 65,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26988,
    "c": 0.06929,
    "h": 33.4
  },
  "luminance": 0.01803
}

Semantic roles & 50–950 ramp

primary
#42170E
secondary
#2F6F7D
accent
#CBE840
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #42170E

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

Preview Lab → · Contrast checker → · Palette generator →

#42170E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva