#40501F#40501F

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

Color values

HEX#40501F
RGBrgb(64, 80, 31)
HSLhsl(80, 44%, 22%)
HSVhsv(80, 61%, 31%)
CMYKcmyk(20%, 0%, 61.2%, 68.6%)
CIE-LABlab(31.64, -15.16, 26.39)
CIE-LCHlch(31.64, 30.43, 119.87°)
OKLaboklab(40.54% -0.0429 0.0618)
OKLCHoklch(40.54% 0.075 124.8)
XYZxyz(5.2303, 6.9262, 2.3574)
Luminance0.0693 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40501F #2F1F50
analogous
#50481F #40501F #28501F
triadic
#40501F #1F4050 #501F40
tetradic
#40501F #1F5048 #2F1F50 #501F28
square
#40501F #1F5048 #2F1F50 #501F28
split-complementary
#40501F #1F2850 #481F50
monochromatic
#121609 #1D240E #40501F #637C30 #87A841

Accessibility & contrast

On white

8.80
#40501F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#40501F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40501F
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40501F#FFFFFF#000000##FFFFFF
##40501F1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40501f;
/* rgb */ color: rgb(64, 80, 31);
/* oklch */ color: oklch(40.5% 0.075 124.8);
Tailwind
colors: {
  custom: {
    50: '#76815c',
    500: '#40501f',
    950: '#000000',
  },
}
SCSS
$custom: #40501f;
$custom-light: #76815c;
$custom-dark: #000000;
JSON
{
  "hex": "#40501f",
  "rgb": {
    "r": 64,
    "g": 80,
    "b": 31
  },
  "hsl": {
    "h": 79.592,
    "s": 44.144,
    "l": 21.765
  },
  "oklch": {
    "l": 0.40545,
    "c": 0.07525,
    "h": 124.8
  },
  "luminance": 0.06926
}

Semantic roles & 50–950 ramp

primary
#40501F
secondary
#5B4685
accent
#54D47E
background
#F7F7F5
surface
#EDEEE9
border
#C8C9C5
text
#080A04
muted
#7B7C79

Preview Lab

Preview with #40501F

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

Preview Lab → · Contrast checker → · Palette generator →

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