#40591A#40591A

#40591A is a dark, moderate yellow-green. Relative luminance 0.083; OKLCH L 42.9% C 0.094 H 128.4°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#40591A
RGBrgb(64, 89, 26)
HSLhsl(84, 55%, 23%)
HSVhsv(84, 71%, 35%)
CMYKcmyk(28.1%, 0%, 70.8%, 65.1%)
CIE-LABlab(34.62, -20.51, 32.22)
CIE-LCHlch(34.62, 38.19, 122.48°)
OKLaboklab(42.94% -0.0582 0.0735)
OKLCHoklch(42.94% 0.094 128.4)
XYZxyz(5.8732, 8.3092, 2.2715)
Luminance0.0831 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40591A #331A59
analogous
#59531A #40591A #20591A
triadic
#40591A #1A4059 #591A40
tetradic
#40591A #1A5953 #331A59 #591A20
square
#40591A #1A5953 #331A59 #591A20
split-complementary
#40591A #1A2059 #531A59
monochromatic
#111807 #1E2A0C #40591A #628828 #84B836

Accessibility & contrast

On white

7.89
#40591A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40591A
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40591A#FFFFFF#000000##FFFFFF
##40591A1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40591a;
/* rgb */ color: rgb(64, 89, 26);
/* oklch */ color: oklch(42.9% 0.094 128.4);
Tailwind
colors: {
  custom: {
    50: '#77885a',
    500: '#40591a',
    950: '#000000',
  },
}
SCSS
$custom: #40591a;
$custom-light: #77885a;
$custom-dark: #000000;
JSON
{
  "hex": "#40591a",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 26
  },
  "hsl": {
    "h": 83.81,
    "s": 54.783,
    "l": 22.549
  },
  "oklch": {
    "l": 0.42939,
    "c": 0.0938,
    "h": 128.4
  },
  "luminance": 0.08309
}

Semantic roles & 50–950 ramp

primary
#40591A
secondary
#5F408F
accent
#4ADE85
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40591A

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

Preview Lab → · Contrast checker → · Palette generator →

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