#40591E#40591E

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

Color values

HEX#40591E
RGBrgb(64, 89, 30)
HSLhsl(85, 50%, 23%)
HSVhsv(85, 66%, 35%)
CMYKcmyk(28.1%, 0%, 66.3%, 65.1%)
CIE-LABlab(34.66, -20.14, 30.32)
CIE-LCHlch(34.66, 36.40, 123.60°)
OKLaboklab(42.98% -0.0568 0.0701)
OKLCHoklch(42.98% 0.09 129)
XYZxyz(5.9210, 8.3283, 2.5236)
Luminance0.0833 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40591E #371E59
analogous
#59541E #40591E #22591E
triadic
#40591E #1E4059 #591E40
tetradic
#40591E #1E5954 #371E59 #591E22
square
#40591E #1E5954 #371E59 #591E22
split-complementary
#40591E #1E2259 #541E59
monochromatic
#101708 #1F2B0F #40591E #61872D #82B53D

Accessibility & contrast

On white

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

On black

2.67
#40591E on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##40591E#FFFFFF#000000##FFFFFF
##40591E1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5317
Deuteranopia (green-blind)
#5A5122
Tritanopia (blue-blind)
#42554D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40591e;
/* rgb */ color: rgb(64, 89, 30);
/* oklch */ color: oklch(43.0% 0.090 129.0);
Tailwind
colors: {
  custom: {
    50: '#77885d',
    500: '#40591e',
    950: '#000000',
  },
}
SCSS
$custom: #40591e;
$custom-light: #77885d;
$custom-dark: #000000;
JSON
{
  "hex": "#40591e",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 30
  },
  "hsl": {
    "h": 85.424,
    "s": 49.58,
    "l": 23.333
  },
  "oklch": {
    "l": 0.42983,
    "c": 0.09023,
    "h": 129
  },
  "luminance": 0.08328
}

Semantic roles & 50–950 ramp

primary
#40591E
secondary
#64458E
accent
#4FD989
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40591E

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

Preview Lab → · Contrast checker → · Palette generator →

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