#40591C#40591C

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

Color values

HEX#40591C
RGBrgb(64, 89, 28)
HSLhsl(85, 52%, 23%)
HSVhsv(85, 69%, 35%)
CMYKcmyk(28.1%, 0%, 68.5%, 65.1%)
CIE-LABlab(34.64, -20.33, 31.28)
CIE-LCHlch(34.64, 37.31, 123.02°)
OKLaboklab(42.96% -0.0575 0.0719)
OKLCHoklch(42.96% 0.092 128.7)
XYZxyz(5.8963, 8.3185, 2.3934)
Luminance0.0832 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40591C #351C59
analogous
#59531C #40591C #21591C
triadic
#40591C #1C4059 #591C40
tetradic
#40591C #1C5953 #351C59 #591C21
square
#40591C #1C5953 #351C59 #591C21
split-complementary
#40591C #1C2159 #531C59
monochromatic
#111707 #1F2A0D #40591C #61882B #83B639

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #40591c;
/* rgb */ color: rgb(64, 89, 28);
/* oklch */ color: oklch(43.0% 0.092 128.7);
Tailwind
colors: {
  custom: {
    50: '#77885b',
    500: '#40591c',
    950: '#000000',
  },
}
SCSS
$custom: #40591c;
$custom-light: #77885b;
$custom-dark: #000000;
JSON
{
  "hex": "#40591c",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 28
  },
  "hsl": {
    "h": 84.59,
    "s": 52.137,
    "l": 22.941
  },
  "oklch": {
    "l": 0.4296,
    "c": 0.09206,
    "h": 128.7
  },
  "luminance": 0.08319
}

Semantic roles & 50–950 ramp

primary
#40591C
secondary
#62428F
accent
#4CDC87
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40591C

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

Preview Lab → · Contrast checker → · Palette generator →

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