#40501D#40501D

#40501D is a dark, moderate yellow-green. Relative luminance 0.069; OKLCH L 40.5% C 0.077 H 124.4°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#40501D
RGBrgb(64, 80, 29)
HSLhsl(79, 47%, 21%)
HSVhsv(79, 64%, 31%)
CMYKcmyk(20%, 0%, 63.7%, 68.6%)
CIE-LABlab(31.61, -15.37, 27.43)
CIE-LCHlch(31.61, 31.44, 119.25°)
OKLaboklab(40.52% -0.0437 0.0638)
OKLCHoklch(40.52% 0.077 124.4)
XYZxyz(5.2048, 6.9160, 2.2229)
Luminance0.0692 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40501D #2D1D50
analogous
#50471D #40501D #27501D
triadic
#40501D #1D4050 #501D40
tetradic
#40501D #1D5047 #2D1D50 #501D27
square
#40501D #1D5047 #2D1D50 #501D27
split-complementary
#40501D #1D2750 #471D50
monochromatic
#121608 #1C230D #40501D #647D2D #88AA3E

Accessibility & contrast

On white

8.81
#40501D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#40501D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40501D
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40501D#FFFFFF#000000##FFFFFF
##40501D1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#544B18
Deuteranopia (green-blind)
#524A20
Tritanopia (blue-blind)
#434C45
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #40501d;
/* rgb */ color: rgb(64, 80, 29);
/* oklch */ color: oklch(40.5% 0.077 124.4);
Tailwind
colors: {
  custom: {
    50: '#76815b',
    500: '#40501d',
    950: '#000000',
  },
}
SCSS
$custom: #40501d;
$custom-light: #76815b;
$custom-dark: #000000;
JSON
{
  "hex": "#40501d",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 29
  },
  "hsl": {
    "h": 78.824,
    "s": 46.789,
    "l": 21.373
  },
  "oklch": {
    "l": 0.40519,
    "c": 0.07734,
    "h": 124.4
  },
  "luminance": 0.06916
}

Semantic roles & 50–950 ramp

primary
#40501D
secondary
#584485
accent
#51D67B
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #40501D

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

Preview Lab → · Contrast checker → · Palette generator →

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