#40500D#40500D

#40500D is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.4% C 0.090 H 122.6°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#40500D
RGBrgb(64, 80, 13)
HSLhsl(74, 72%, 18%)
HSVhsv(74, 84%, 31%)
CMYKcmyk(20%, 0%, 83.7%, 68.6%)
CIE-LABlab(31.48, -16.60, 34.59)
CIE-LCHlch(31.48, 38.36, 115.65°)
OKLaboklab(40.36% -0.0488 0.0762)
OKLCHoklch(40.36% 0.091 122.6)
XYZxyz(5.0557, 6.8563, 1.4378)
Luminance0.0686 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40500D #1D0D50
analogous
#503E0D #40500D #1E500D
triadic
#40500D #0D4050 #500D40
tetradic
#40500D #0D503E #1D0D50 #500D1E
square
#40500D #0D503E #1D0D50 #500D1E
split-complementary
#40500D #0D1E50 #3E0D50
monochromatic
#151A04 #161B04 #40500D #6A8516 #94B91E

Accessibility & contrast

On white

8.86
#40500D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#40500D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40500D
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40500D#FFFFFF#000000##FFFFFF
##40500D1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554A01
Deuteranopia (green-blind)
#534A13
Tritanopia (blue-blind)
#444B43
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #40500d;
/* rgb */ color: rgb(64, 80, 13);
/* oklch */ color: oklch(40.4% 0.090 122.6);
Tailwind
colors: {
  custom: {
    50: '#778152',
    500: '#40500d',
    950: '#000000',
  },
}
SCSS
$custom: #40500d;
$custom-light: #778152;
$custom-dark: #000000;
JSON
{
  "hex": "#40500d",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 13
  },
  "hsl": {
    "h": 74.328,
    "s": 72.043,
    "l": 18.235
  },
  "oklch": {
    "l": 0.40364,
    "c": 0.0905,
    "h": 122.6
  },
  "luminance": 0.06856
}

Semantic roles & 50–950 ramp

primary
#40500D
secondary
#442E8B
accent
#39EF64
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#090A02
muted
#7B7C78

Preview Lab

Preview with #40500D

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

Preview Lab → · Contrast checker → · Palette generator →

#40500D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva