#42170F#42170F

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

Color values

HEX#42170F
RGBrgb(66, 23, 15)
HSLhsl(9, 63%, 16%)
HSVhsv(9, 77%, 26%)
CMYKcmyk(0%, 65.2%, 77.3%, 74.1%)
CIE-LABlab(14.43, 20.24, 15.43)
CIE-LCHlch(14.43, 25.44, 37.32°)
OKLaboklab(27.01% 0.0582 0.0369)
OKLCHoklch(27.01% 0.069 32.4)
XYZxyz(2.6396, 1.8059, 0.6614)
Luminance0.0181 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42170F #0F3A42
analogous
#420F20 #42170F #42300F
triadic
#42170F #0F4217 #170F42
tetradic
#42170F #20420F #0F3A42 #300F42
square
#42170F #20420F #0F3A42 #300F42
split-complementary
#42170F #0F4230 #0F2042
monochromatic
#190906 #190906 #42170F #74281A #A63A26

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##42170F#FFFFFF#000000##FFFFFF
##42170F1.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)
#221F0E
Deuteranopia (green-blind)
#2D280E
Tritanopia (blue-blind)
#490E15
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #42170f;
/* rgb */ color: rgb(66, 23, 15);
/* oklch */ color: oklch(27.0% 0.069 32.4);
Tailwind
colors: {
  custom: {
    50: '#7b564e',
    500: '#42170f',
    950: '#000000',
  },
}
SCSS
$custom: #42170f;
$custom-light: #7b564e;
$custom-dark: #000000;
JSON
{
  "hex": "#42170f",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 15
  },
  "hsl": {
    "h": 9.412,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27005,
    "c": 0.06897,
    "h": 32.4
  },
  "luminance": 0.01806
}

Semantic roles & 50–950 ramp

primary
#42170F
secondary
#30717C
accent
#CCE642
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #42170F

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

Preview Lab → · Contrast checker → · Palette generator →

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