#40581E#40581E

#40581E is a dark, moderate yellow-green. Relative luminance 0.082; OKLCH L 42.7% C 0.089 H 128.6°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#40581E
RGBrgb(64, 88, 30)
HSLhsl(85, 49%, 23%)
HSVhsv(85, 66%, 35%)
CMYKcmyk(27.3%, 0%, 65.9%, 65.5%)
CIE-LABlab(34.32, -19.61, 29.94)
CIE-LCHlch(34.32, 35.80, 123.23°)
OKLaboklab(42.71% -0.0554 0.0693)
OKLCHoklch(42.71% 0.089 128.6)
XYZxyz(5.8384, 8.1630, 2.4961)
Luminance0.0816 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40581E #361E58
analogous
#58531E #40581E #23581E
triadic
#40581E #1E4058 #581E40
tetradic
#40581E #1E5853 #361E58 #581E23
square
#40581E #1E5853 #361E58 #581E23
split-complementary
#40581E #1E2358 #531E58
monochromatic
#111708 #1F2A0E #40581E #61862E #82B33D

Accessibility & contrast

On white

7.98
#40581E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#40581E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40581E
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40581E#FFFFFF#000000##FFFFFF
##40581E1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C5217
Deuteranopia (green-blind)
#595022
Tritanopia (blue-blind)
#42544C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40581e;
/* rgb */ color: rgb(64, 88, 30);
/* oklch */ color: oklch(42.7% 0.089 128.6);
Tailwind
colors: {
  custom: {
    50: '#77875c',
    500: '#40581e',
    950: '#000000',
  },
}
SCSS
$custom: #40581e;
$custom-light: #77875c;
$custom-dark: #000000;
JSON
{
  "hex": "#40581e",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 30
  },
  "hsl": {
    "h": 84.828,
    "s": 49.153,
    "l": 23.137
  },
  "oklch": {
    "l": 0.42709,
    "c": 0.0887,
    "h": 128.6
  },
  "luminance": 0.08163
}

Semantic roles & 50–950 ramp

primary
#40581E
secondary
#63458D
accent
#4FD988
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40581E

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

Preview Lab → · Contrast checker → · Palette generator →

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