#40371C#40371C

#40371C is a dark, muted yellow. Relative luminance 0.039; OKLCH L 33.9% C 0.044 H 91.5°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#40371C
RGBrgb(64, 55, 28)
HSLhsl(45, 39%, 18%)
HSVhsv(45, 56%, 25%)
CMYKcmyk(0%, 14.1%, 56.2%, 74.9%)
CIE-LABlab(23.36, -0.35, 18.29)
CIE-LCHlch(23.36, 18.29, 91.08°)
OKLaboklab(33.92% -0.0011 0.0438)
OKLCHoklch(33.92% 0.044 91.5)
XYZxyz(3.6903, 3.9064, 1.6580)
Luminance0.0391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40371C #1C2540
analogous
#40251C #40371C #37401C
triadic
#40371C #1C4037 #371C40
tetradic
#40371C #1C4025 #1C2540 #401C37
square
#40371C #1C4025 #1C2540 #401C37
split-complementary
#40371C #1C3740 #251C40
monochromatic
#151209 #151209 #40371C #6B5C2F #958041

Accessibility & contrast

On white

11.79
#40371C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#40371C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40371C
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40371C#FFFFFF#000000##FFFFFF
##40371C1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C361A
Deuteranopia (green-blind)
#3F391D
Tritanopia (blue-blind)
#453331
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #40371c;
/* rgb */ color: rgb(64, 55, 28);
/* oklch */ color: oklch(33.9% 0.044 91.5);
Tailwind
colors: {
  custom: {
    50: '#766d58',
    500: '#40371c',
    950: '#000000',
  },
}
SCSS
$custom: #40371c;
$custom-light: #766d58;
$custom-dark: #000000;
JSON
{
  "hex": "#40371c",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 28
  },
  "hsl": {
    "h": 45,
    "s": 39.13,
    "l": 18.039
  },
  "oklch": {
    "l": 0.33922,
    "c": 0.04382,
    "h": 91.5
  },
  "luminance": 0.03906
}

Semantic roles & 50–950 ramp

primary
#40371C
secondary
#434F75
accent
#76CF59
background
#F7F6F5
surface
#EDEBE9
border
#C8C6C5
text
#080703
muted
#7B7A78

Preview Lab

Preview with #40371C

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

Preview Lab → · Contrast checker → · Palette generator →

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