#40370F#40370F

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

Color values

HEX#40370F
RGBrgb(64, 55, 15)
HSLhsl(49, 62%, 15%)
HSVhsv(49, 77%, 25%)
CMYKcmyk(0%, 14.1%, 76.6%, 74.9%)
CIE-LABlab(23.19, -1.54, 25.57)
CIE-LCHlch(23.19, 25.62, 93.44°)
OKLaboklab(33.74% -0.0064 0.0576)
OKLCHoklch(33.74% 0.058 96.4)
XYZxyz(3.5669, 3.8570, 1.0084)
Luminance0.0386 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40370F #0F1840
analogous
#401E0F #40370F #30400F
triadic
#40370F #0F4037 #370F40
tetradic
#40370F #0F401E #0F1840 #400F30
square
#40370F #0F401E #0F1840 #400F30
split-complementary
#40370F #0F3040 #1E0F40
monochromatic
#191506 #191506 #40370F #72621B #A38C26

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40370F#FFFFFF#000000##FFFFFF
##40370F1.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)
#3D360A
Deuteranopia (green-blind)
#403911
Tritanopia (blue-blind)
#46322F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #40370f;
/* rgb */ color: rgb(64, 55, 15);
/* oklch */ color: oklch(33.7% 0.058 96.4);
Tailwind
colors: {
  custom: {
    50: '#776d50',
    500: '#40370f',
    950: '#000000',
  },
}
SCSS
$custom: #40370f;
$custom-light: #776d50;
$custom-dark: #000000;
JSON
{
  "hex": "#40370f",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 15
  },
  "hsl": {
    "h": 48.98,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.33737,
    "c": 0.05799,
    "h": 96.4
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#40370F
secondary
#303E7A
accent
#61E543
background
#F7F6F4
surface
#EDEBE7
border
#C8C6C3
text
#090702
muted
#7B7A78

Preview Lab

Preview with #40370F

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

Preview Lab → · Contrast checker → · Palette generator →

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