#40501E#40501E

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

Color values

HEX#40501E
RGBrgb(64, 80, 30)
HSLhsl(79, 45%, 22%)
HSVhsv(79, 63%, 31%)
CMYKcmyk(20%, 0%, 62.5%, 68.6%)
CIE-LABlab(31.63, -15.26, 26.92)
CIE-LCHlch(31.63, 30.94, 119.56°)
OKLaboklab(40.53% -0.0433 0.0628)
OKLCHoklch(40.53% 0.076 124.6)
XYZxyz(5.2174, 6.9210, 2.2891)
Luminance0.0692 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40501E #2E1E50
analogous
#50471E #40501E #27501E
triadic
#40501E #1E4050 #501E40
tetradic
#40501E #1E5047 #2E1E50 #501E27
square
#40501E #1E5047 #2E1E50 #501E27
split-complementary
#40501E #1E2750 #471E50
monochromatic
#121608 #1C230D #40501E #647D2F #87A93F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40501E#FFFFFF#000000##FFFFFF
##40501E1.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)
#544B19
Deuteranopia (green-blind)
#524A21
Tritanopia (blue-blind)
#434C45
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #40501e;
/* rgb */ color: rgb(64, 80, 30);
/* oklch */ color: oklch(40.5% 0.076 124.6);
Tailwind
colors: {
  custom: {
    50: '#76815c',
    500: '#40501e',
    950: '#000000',
  },
}
SCSS
$custom: #40501e;
$custom-light: #76815c;
$custom-dark: #000000;
JSON
{
  "hex": "#40501e",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 30
  },
  "hsl": {
    "h": 79.2,
    "s": 45.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.40532,
    "c": 0.07631,
    "h": 124.6
  },
  "luminance": 0.06921
}

Semantic roles & 50–950 ramp

primary
#40501E
secondary
#594585
accent
#53D57C
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #40501E

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

Preview Lab → · Contrast checker → · Palette generator →

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