#40591D#40591D

#40591D is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 43.0% C 0.091 H 128.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#40591D
RGBrgb(64, 89, 29)
HSLhsl(85, 51%, 23%)
HSVhsv(85, 67%, 35%)
CMYKcmyk(28.1%, 0%, 67.4%, 65.1%)
CIE-LABlab(34.65, -20.24, 30.80)
CIE-LCHlch(34.65, 36.86, 123.31°)
OKLaboklab(42.97% -0.0572 0.071)
OKLCHoklch(42.97% 0.091 128.9)
XYZxyz(5.9085, 8.3233, 2.4574)
Luminance0.0832 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40591D #361D59
analogous
#59541D #40591D #22591D
triadic
#40591D #1D4059 #591D40
tetradic
#40591D #1D5954 #361D59 #591D22
square
#40591D #1D5954 #361D59 #591D22
split-complementary
#40591D #1D2259 #541D59
monochromatic
#111708 #1F2B0E #40591D #61872C #82B53B

Accessibility & contrast

On white

7.88
#40591D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#40591D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40591D
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40591D#FFFFFF#000000##FFFFFF
##40591D1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5316
Deuteranopia (green-blind)
#5A5121
Tritanopia (blue-blind)
#42554C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40591d;
/* rgb */ color: rgb(64, 89, 29);
/* oklch */ color: oklch(43.0% 0.091 128.9);
Tailwind
colors: {
  custom: {
    50: '#77885c',
    500: '#40591d',
    950: '#000000',
  },
}
SCSS
$custom: #40591d;
$custom-light: #77885c;
$custom-dark: #000000;
JSON
{
  "hex": "#40591d",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 29
  },
  "hsl": {
    "h": 85,
    "s": 50.847,
    "l": 23.137
  },
  "oklch": {
    "l": 0.42971,
    "c": 0.09115,
    "h": 128.9
  },
  "luminance": 0.08323
}

Semantic roles & 50–950 ramp

primary
#40591D
secondary
#63448E
accent
#4DDA88
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40591D

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

Preview Lab → · Contrast checker → · Palette generator →

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