#40120E#40120E

#40120E is a dark, moderate red. Relative luminance 0.016; OKLCH L 25.8% C 0.073 H 28.2°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#40120E
RGBrgb(64, 18, 14)
HSLhsl(5, 64%, 15%)
HSVhsv(5, 78%, 25%)
CMYKcmyk(0%, 71.9%, 78.1%, 74.9%)
CIE-LABlab(12.95, 22.11, 13.91)
CIE-LCHlch(12.95, 26.12, 32.18°)
OKLaboklab(25.8% 0.0641 0.0343)
OKLCHoklch(25.8% 0.073 28.2)
XYZxyz(2.4102, 1.5546, 0.5885)
Luminance0.0155 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40120E #0E3C40
analogous
#400E23 #40120E #402B0E
triadic
#40120E #0E4012 #120E40
tetradic
#40120E #23400E #0E3C40 #2B0E40
square
#40120E #23400E #0E3C40 #2B0E40
split-complementary
#40120E #0E402B #0E2340
monochromatic
#190705 #190705 #40120E #722019 #A42E24

Accessibility & contrast

On white

16.02
#40120E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40120E
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40120E#FFFFFF#000000##FFFFFF
##40120E1.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E1B0D
Deuteranopia (green-blind)
#2A250D
Tritanopia (blue-blind)
#470711
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40120e;
/* rgb */ color: rgb(64, 18, 14);
/* oklch */ color: oklch(25.8% 0.073 28.2);
Tailwind
colors: {
  custom: {
    50: '#79524d',
    500: '#40120e',
    950: '#000000',
  },
}
SCSS
$custom: #40120e;
$custom-light: #79524d;
$custom-dark: #000000;
JSON
{
  "hex": "#40120e",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 14
  },
  "hsl": {
    "h": 4.8,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25804,
    "c": 0.07271,
    "h": 28.2
  },
  "luminance": 0.01554
}

Semantic roles & 50–950 ramp

primary
#40120E
secondary
#2F757B
accent
#DAE741
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #40120E

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

Preview Lab → · Contrast checker → · Palette generator →

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