#40501A#40501A

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

Color values

HEX#40501A
RGBrgb(64, 80, 26)
HSLhsl(78, 51%, 21%)
HSVhsv(78, 68%, 31%)
CMYKcmyk(20%, 0%, 67.5%, 68.6%)
CIE-LABlab(31.58, -15.66, 28.95)
CIE-LCHlch(31.58, 32.91, 118.41°)
OKLaboklab(40.48% -0.0448 0.0666)
OKLCHoklch(40.48% 0.08 123.9)
XYZxyz(5.1695, 6.9019, 2.0369)
Luminance0.0690 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40501A #2A1A50
analogous
#50451A #40501A #25501A
triadic
#40501A #1A4050 #501A40
tetradic
#40501A #1A5045 #2A1A50 #501A25
square
#40501A #1A5045 #2A1A50 #501A25
split-complementary
#40501A #1A2550 #451A50
monochromatic
#121708 #1B220B #40501A #657E29 #8AAC38

Accessibility & contrast

On white

8.82
#40501A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40501A
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40501A#FFFFFF#000000##FFFFFF
##40501A1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B14
Deuteranopia (green-blind)
#534A1E
Tritanopia (blue-blind)
#434C45
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #40501a;
/* rgb */ color: rgb(64, 80, 26);
/* oklch */ color: oklch(40.5% 0.080 123.9);
Tailwind
colors: {
  custom: {
    50: '#768159',
    500: '#40501a',
    950: '#000000',
  },
}
SCSS
$custom: #40501a;
$custom-light: #768159;
$custom-dark: #000000;
JSON
{
  "hex": "#40501a",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 26
  },
  "hsl": {
    "h": 77.778,
    "s": 50.943,
    "l": 20.784
  },
  "oklch": {
    "l": 0.40482,
    "c": 0.0803,
    "h": 123.9
  },
  "luminance": 0.06902
}

Semantic roles & 50–950 ramp

primary
#40501A
secondary
#554086
accent
#4DDA77
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #40501A

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

Preview Lab → · Contrast checker → · Palette generator →

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