#40581A#40581A

#40581A is a dark, moderate yellow-green. Relative luminance 0.081; OKLCH L 42.7% C 0.092 H 128.0°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#40581A
RGBrgb(64, 88, 26)
HSLhsl(83, 54%, 22%)
HSVhsv(83, 70%, 35%)
CMYKcmyk(27.3%, 0%, 70.5%, 65.5%)
CIE-LABlab(34.28, -19.99, 31.86)
CIE-LCHlch(34.28, 37.61, 122.10°)
OKLaboklab(42.67% -0.0568 0.0728)
OKLCHoklch(42.67% 0.092 128)
XYZxyz(5.7905, 8.1439, 2.2439)
Luminance0.0814 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40581A #321A58
analogous
#58511A #40581A #21581A
triadic
#40581A #1A4058 #581A40
tetradic
#40581A #1A5851 #321A58 #581A21
square
#40581A #1A5851 #321A58 #581A21
split-complementary
#40581A #1A2158 #511A58
monochromatic
#111807 #1E290C #40581A #628728 #85B636

Accessibility & contrast

On white

7.99
#40581A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40581A
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40581A#FFFFFF#000000##FFFFFF
##40581A1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5212
Deuteranopia (green-blind)
#59501F
Tritanopia (blue-blind)
#42544B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #40581a;
/* rgb */ color: rgb(64, 88, 26);
/* oklch */ color: oklch(42.7% 0.092 128.0);
Tailwind
colors: {
  custom: {
    50: '#77875a',
    500: '#40581a',
    950: '#000000',
  },
}
SCSS
$custom: #40581a;
$custom-light: #77875a;
$custom-dark: #000000;
JSON
{
  "hex": "#40581a",
  "rgb": {
    "r": 64,
    "g": 88,
    "b": 26
  },
  "hsl": {
    "h": 83.226,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.42665,
    "c": 0.09231,
    "h": 128
  },
  "luminance": 0.08144
}

Semantic roles & 50–950 ramp

primary
#40581A
secondary
#5E408E
accent
#4ADE83
background
#F7F8F5
surface
#EDEFE9
border
#C8CAC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #40581A

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

Preview Lab → · Contrast checker → · Palette generator →

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