#40501B#40501B

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

Color values

HEX#40501B
RGBrgb(64, 80, 27)
HSLhsl(78, 50%, 21%)
HSVhsv(78, 66%, 31%)
CMYKcmyk(20%, 0%, 66.3%, 68.6%)
CIE-LABlab(31.59, -15.56, 28.45)
CIE-LCHlch(31.59, 32.43, 118.68°)
OKLaboklab(40.49% -0.0445 0.0657)
OKLCHoklch(40.49% 0.079 124.1)
XYZxyz(5.1809, 6.9064, 2.0968)
Luminance0.0691 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40501B #2B1B50
analogous
#50451B #40501B #25501B
triadic
#40501B #1B4050 #501B40
tetradic
#40501B #1B5045 #2B1B50 #501B25
square
#40501B #1B5045 #2B1B50 #501B25
split-complementary
#40501B #1B2550 #451B50
monochromatic
#121708 #1B220C #40501B #657E2A #89AC3A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40501B#FFFFFF#000000##FFFFFF
##40501B1.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)
#554B15
Deuteranopia (green-blind)
#524A1F
Tritanopia (blue-blind)
#434C45
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #40501b;
/* rgb */ color: rgb(64, 80, 27);
/* oklch */ color: oklch(40.5% 0.079 124.1);
Tailwind
colors: {
  custom: {
    50: '#76815a',
    500: '#40501b',
    950: '#000000',
  },
}
SCSS
$custom: #40501b;
$custom-light: #76815a;
$custom-dark: #000000;
JSON
{
  "hex": "#40501b",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 27
  },
  "hsl": {
    "h": 78.113,
    "s": 49.533,
    "l": 20.98
  },
  "oklch": {
    "l": 0.40494,
    "c": 0.07934,
    "h": 124.1
  },
  "luminance": 0.06906
}

Semantic roles & 50–950 ramp

primary
#40501B
secondary
#564186
accent
#4FD978
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#090A04
muted
#7B7C79

Preview Lab

Preview with #40501B

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

Preview Lab → · Contrast checker → · Palette generator →

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