#405A1E#405A1E

#405A1E is a dark, moderate yellow-green. Relative luminance 0.085; OKLCH L 43.3% C 0.092 H 129.4°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#405A1E
RGBrgb(64, 90, 30)
HSLhsl(86, 50%, 24%)
HSVhsv(86, 67%, 35%)
CMYKcmyk(28.9%, 0%, 66.7%, 64.7%)
CIE-LABlab(34.99, -20.67, 30.69)
CIE-LCHlch(34.99, 37.00, 123.96°)
OKLaboklab(43.26% -0.0583 0.0709)
OKLCHoklch(43.26% 0.092 129.4)
XYZxyz(6.0048, 8.4959, 2.5515)
Luminance0.0850 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A1E #381E5A
analogous
#5A561E #405A1E #225A1E
triadic
#405A1E #1E405A #5A1E40
tetradic
#405A1E #1E5A56 #381E5A #5A1E22
square
#405A1E #1E5A56 #381E5A #5A1E22
split-complementary
#405A1E #1E225A #561E5A
monochromatic
#101708 #1F2C0F #405A1E #61882D #81B63D

Accessibility & contrast

On white

7.78
#405A1E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#405A1E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405A1E
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A1E#FFFFFF#000000##FFFFFF
##405A1E1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E5317
Deuteranopia (green-blind)
#5B5222
Tritanopia (blue-blind)
#42564D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #405a1e;
/* rgb */ color: rgb(64, 90, 30);
/* oklch */ color: oklch(43.3% 0.092 129.4);
Tailwind
colors: {
  custom: {
    50: '#77885d',
    500: '#405a1e',
    950: '#000000',
  },
}
SCSS
$custom: #405a1e;
$custom-light: #77885d;
$custom-dark: #000000;
JSON
{
  "hex": "#405a1e",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 30
  },
  "hsl": {
    "h": 86,
    "s": 50,
    "l": 23.529
  },
  "oklch": {
    "l": 0.43257,
    "c": 0.09176,
    "h": 129.4
  },
  "luminance": 0.08496
}

Semantic roles & 50–950 ramp

primary
#405A1E
secondary
#65458F
accent
#4EDA8B
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090B04
muted
#7B7C79

Preview Lab

Preview with #405A1E

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

Preview Lab → · Contrast checker → · Palette generator →

#405A1E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva