#40591F#40591F

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

Color values

HEX#40591F
RGBrgb(64, 89, 31)
HSLhsl(86, 48%, 24%)
HSVhsv(86, 65%, 35%)
CMYKcmyk(28.1%, 0%, 65.2%, 65.1%)
CIE-LABlab(34.67, -20.04, 29.82)
CIE-LCHlch(34.67, 35.93, 123.90°)
OKLaboklab(43% -0.0565 0.0692)
OKLCHoklch(43% 0.089 129.2)
XYZxyz(5.9340, 8.3335, 2.5920)
Luminance0.0833 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40591F #381F59
analogous
#59551F #40591F #23591F
triadic
#40591F #1F4059 #591F40
tetradic
#40591F #1F5955 #381F59 #591F23
square
#40591F #1F5955 #381F59 #591F23
split-complementary
#40591F #1F2359 #551F59
monochromatic
#101708 #1F2C0F #40591F #61862F #81B43F

Accessibility & contrast

On white

7.87
#40591F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40591F
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40591F#FFFFFF#000000##FFFFFF
##40591F1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5318
Deuteranopia (green-blind)
#5A5123
Tritanopia (blue-blind)
#42554D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #40591f;
/* rgb */ color: rgb(64, 89, 31);
/* oklch */ color: oklch(43.0% 0.089 129.2);
Tailwind
colors: {
  custom: {
    50: '#77885d',
    500: '#40591f',
    950: '#000000',
  },
}
SCSS
$custom: #40591f;
$custom-light: #77885d;
$custom-dark: #000000;
JSON
{
  "hex": "#40591f",
  "rgb": {
    "r": 64,
    "g": 89,
    "b": 31
  },
  "hsl": {
    "h": 85.862,
    "s": 48.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.42995,
    "c": 0.08929,
    "h": 129.2
  },
  "luminance": 0.08334
}

Semantic roles & 50–950 ramp

primary
#40591F
secondary
#65468E
accent
#50D88B
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40591F

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

Preview Lab → · Contrast checker → · Palette generator →

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