#40120A#40120A

#40120A is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.7% C 0.074 H 32.1°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#40120A
RGBrgb(64, 18, 10)
HSLhsl(9, 73%, 15%)
HSVhsv(9, 84%, 25%)
CMYKcmyk(0%, 71.9%, 84.4%, 74.9%)
CIE-LABlab(12.89, 21.87, 15.65)
CIE-LCHlch(12.89, 26.89, 35.59°)
OKLaboklab(25.74% 0.0624 0.0392)
OKLCHoklch(25.74% 0.074 32.1)
XYZxyz(2.3857, 1.5449, 0.4597)
Luminance0.0155 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40120A #0A3840
analogous
#400A1D #40120A #402D0A
triadic
#40120A #0A4012 #120A40
tetradic
#40120A #1D400A #0A3840 #2D0A40
square
#40120A #1D400A #0A3840 #2D0A40
split-complementary
#40120A #0A402D #0A1D40
monochromatic
#1A0704 #1A0704 #40120A #752112 #AA301B

Accessibility & contrast

On white

16.04
#40120A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#40120A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40120A
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40120A#FFFFFF#000000##FFFFFF
##40120A1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F1B09
Deuteranopia (green-blind)
#2A2509
Tritanopia (blue-blind)
#470710
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40120a;
/* rgb */ color: rgb(64, 18, 10);
/* oklch */ color: oklch(25.7% 0.074 32.1);
Tailwind
colors: {
  custom: {
    50: '#79524b',
    500: '#40120a',
    950: '#000000',
  },
}
SCSS
$custom: #40120a;
$custom-light: #79524b;
$custom-dark: #000000;
JSON
{
  "hex": "#40120a",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 10
  },
  "hsl": {
    "h": 8.889,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25739,
    "c": 0.07369,
    "h": 32.1
  },
  "luminance": 0.01545
}

Semantic roles & 50–950 ramp

primary
#40120A
secondary
#29717D
accent
#D4F038
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #40120A

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

Preview Lab → · Contrast checker → · Palette generator →

#40120A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva