#40581D#40581D

#40581D is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.7% C 0.090 H 128.5°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#40581D
RGBrgb(64, 88, 29)
HSLhsl(84, 50%, 23%)
HSVhsv(84, 67%, 35%)
CMYKcmyk(27.3%, 0%, 67%, 65.5%)
CIE-LABlab(34.31, -19.71, 30.43)
CIE-LCHlch(34.31, 36.26, 122.93°)
OKLaboklab(42.7% -0.0557 0.0702)
OKLCHoklch(42.7% 0.09 128.5)
XYZxyz(5.8258, 8.1580, 2.4299)
Luminance0.0816 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40581D #351D58
analogous
#58521D #40581D #22581D
triadic
#40581D #1D4058 #581D40
tetradic
#40581D #1D5852 #351D58 #581D22
square
#40581D #1D5852 #351D58 #581D22
split-complementary
#40581D #1D2258 #521D58
monochromatic
#111708 #1F2A0E #40581D #61862C #83B43B

Accessibility & contrast

On white

7.98
#40581D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#40581D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40581D
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40581D#FFFFFF#000000##FFFFFF
##40581D1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5216
Deuteranopia (green-blind)
#595021
Tritanopia (blue-blind)
#42544C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40581d;
/* rgb */ color: rgb(64, 88, 29);
/* oklch */ color: oklch(42.7% 0.090 128.5);
Tailwind
colors: {
  custom: {
    50: '#77875c',
    500: '#40581d',
    950: '#000000',
  },
}
SCSS
$custom: #40581d;
$custom-light: #77875c;
$custom-dark: #000000;
JSON
{
  "hex": "#40581d",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 29
  },
  "hsl": {
    "h": 84.407,
    "s": 50.427,
    "l": 22.941
  },
  "oklch": {
    "l": 0.42698,
    "c": 0.08964,
    "h": 128.5
  },
  "luminance": 0.08158
}

Semantic roles & 50–950 ramp

primary
#40581D
secondary
#62448D
accent
#4EDA87
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40581D

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

Preview Lab → · Contrast checker → · Palette generator →

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