#40591B#40591B

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

Color values

HEX#40591B
RGBrgb(64, 89, 27)
HSLhsl(84, 53%, 23%)
HSVhsv(84, 70%, 35%)
CMYKcmyk(28.1%, 0%, 69.7%, 65.1%)
CIE-LABlab(34.63, -20.42, 31.75)
CIE-LCHlch(34.63, 37.75, 122.75°)
OKLaboklab(42.95% -0.0579 0.0727)
OKLCHoklch(42.95% 0.093 128.5)
XYZxyz(5.8845, 8.3137, 2.3314)
Luminance0.0831 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40591B #341B59
analogous
#59531B #40591B #21591B
triadic
#40591B #1B4059 #591B40
tetradic
#40591B #1B5953 #341B59 #591B21
square
#40591B #1B5953 #341B59 #591B21
split-complementary
#40591B #1B2159 #531B59
monochromatic
#111707 #1E2A0D #40591B #628829 #84B737

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40591B#FFFFFF#000000##FFFFFF
##40591B1.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)
#5E5313
Deuteranopia (green-blind)
#5A5120
Tritanopia (blue-blind)
#42554C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40591b;
/* rgb */ color: rgb(64, 89, 27);
/* oklch */ color: oklch(42.9% 0.093 128.5);
Tailwind
colors: {
  custom: {
    50: '#77885b',
    500: '#40591b',
    950: '#000000',
  },
}
SCSS
$custom: #40591b;
$custom-light: #77885b;
$custom-dark: #000000;
JSON
{
  "hex": "#40591b",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 27
  },
  "hsl": {
    "h": 84.194,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.42949,
    "c": 0.09294,
    "h": 128.5
  },
  "luminance": 0.08314
}

Semantic roles & 50–950 ramp

primary
#40591B
secondary
#60418F
accent
#4BDD86
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40591B

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

Preview Lab → · Contrast checker → · Palette generator →

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