#42170C#42170C

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

Color values

HEX#42170C
RGBrgb(66, 23, 12)
HSLhsl(12, 69%, 15%)
HSVhsv(12, 82%, 26%)
CMYKcmyk(0%, 65.2%, 81.8%, 74.1%)
CIE-LABlab(14.39, 20.05, 16.84)
CIE-LCHlch(14.39, 26.19, 40.03°)
OKLaboklab(26.96% 0.057 0.0406)
OKLCHoklch(26.96% 0.07 35.4)
XYZxyz(2.6198, 1.7979, 0.5568)
Luminance0.0180 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42170C #0C3742
analogous
#420C1C #42170C #42320C
triadic
#42170C #0C4217 #170C42
tetradic
#42170C #1C420C #0C3742 #320C42
square
#42170C #1C420C #0C3742 #320C42
split-complementary
#42170C #0C4232 #0C1C42
monochromatic
#1A0905 #1A0905 #42170C #762915 #AA3B1F

Accessibility & contrast

On white

15.45
#42170C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42170C
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42170C#FFFFFF#000000##FFFFFF
##42170C1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42170c;
/* rgb */ color: rgb(66, 23, 12);
/* oklch */ color: oklch(27.0% 0.070 35.4);
Tailwind
colors: {
  custom: {
    50: '#7b564c',
    500: '#42170c',
    950: '#000000',
  },
}
SCSS
$custom: #42170c;
$custom-light: #7b564c;
$custom-dark: #000000;
JSON
{
  "hex": "#42170c",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 12
  },
  "hsl": {
    "h": 12.222,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.26956,
    "c": 0.06993,
    "h": 35.4
  },
  "luminance": 0.01798
}

Semantic roles & 50–950 ramp

primary
#42170C
secondary
#2C6D7E
accent
#C8EC3C
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #42170C

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

Preview Lab → · Contrast checker → · Palette generator →

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