#40370E#40370E

#40370E is a dark, muted yellow. Relative luminance 0.039; OKLCH L 33.7% C 0.059 H 96.6°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#40370E
RGBrgb(64, 55, 14)
HSLhsl(49, 64%, 15%)
HSVhsv(49, 78%, 25%)
CMYKcmyk(0%, 14.1%, 78.1%, 74.9%)
CIE-LABlab(23.18, -1.60, 26.07)
CIE-LCHlch(23.18, 26.12, 93.52°)
OKLaboklab(33.73% -0.0068 0.0585)
OKLCHoklch(33.73% 0.059 96.6)
XYZxyz(3.5600, 3.8543, 0.9718)
Luminance0.0385 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40370E #0E1740
analogous
#401E0E #40370E #30400E
triadic
#40370E #0E4037 #370E40
tetradic
#40370E #0E401E #0E1740 #400E30
square
#40370E #0E401E #0E1740 #400E30
split-complementary
#40370E #0E3040 #1E0E40
monochromatic
#191605 #191605 #40370E #726219 #A48D24

Accessibility & contrast

On white

11.86
#40370E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#40370E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40370E
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40370E#FFFFFF#000000##FFFFFF
##40370E1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3609
Deuteranopia (green-blind)
#403910
Tritanopia (blue-blind)
#46322F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #40370e;
/* rgb */ color: rgb(64, 55, 14);
/* oklch */ color: oklch(33.7% 0.059 96.6);
Tailwind
colors: {
  custom: {
    50: '#776d4f',
    500: '#40370e',
    950: '#000000',
  },
}
SCSS
$custom: #40370e;
$custom-light: #776d4f;
$custom-dark: #000000;
JSON
{
  "hex": "#40370e",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 14
  },
  "hsl": {
    "h": 49.2,
    "s": 64.103,
    "l": 15.294
  },
  "oklch": {
    "l": 0.33726,
    "c": 0.05887,
    "h": 96.6
  },
  "luminance": 0.03854
}

Semantic roles & 50–950 ramp

primary
#40370E
secondary
#2F3D7B
accent
#5FE741
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #40370E

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

Preview Lab → · Contrast checker → · Palette generator →

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