#405F1A#405F1A

#405F1A is a dark, moderate yellow-green. Relative luminance 0.093; OKLCH L 44.6% C 0.103 H 130.5°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#405F1A
RGBrgb(64, 95, 26)
HSLhsl(87, 57%, 24%)
HSVhsv(87, 73%, 37%)
CMYKcmyk(32.6%, 0%, 72.6%, 62.7%)
CIE-LABlab(36.65, -23.59, 34.35)
CIE-LCHlch(36.65, 41.67, 124.48°)
OKLaboklab(44.59% -0.0667 0.078)
OKLCHoklch(44.59% 0.103 130.5)
XYZxyz(6.3930, 9.3488, 2.4447)
Luminance0.0935 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F1A #391A5F
analogous
#5F5B1A #405F1A #1D5F1A
triadic
#405F1A #1A405F #5F1A40
tetradic
#405F1A #1A5F5B #391A5F #5F1A1D
square
#405F1A #1A5F5B #391A5F #5F1A1D
split-complementary
#405F1A #1A1D5F #5B1A5F
monochromatic
#101807 #202F0D #405F1A #608F27 #81BF34

Accessibility & contrast

On white

7.32
#405F1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#405F1A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #405F1A
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405F1A#FFFFFF#000000##FFFFFF
##405F1A1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645810
Deuteranopia (green-blind)
#5F5520
Tritanopia (blue-blind)
#425B51
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #405f1a;
/* rgb */ color: rgb(64, 95, 26);
/* oklch */ color: oklch(44.6% 0.103 130.5);
Tailwind
colors: {
  custom: {
    50: '#788c5b',
    500: '#405f1a',
    950: '#000000',
  },
}
SCSS
$custom: #405f1a;
$custom-light: #788c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#405f1a",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 26
  },
  "hsl": {
    "h": 86.957,
    "s": 57.025,
    "l": 23.725
  },
  "oklch": {
    "l": 0.44587,
    "c": 0.10262,
    "h": 130.5
  },
  "luminance": 0.09349
}

Semantic roles & 50–950 ramp

primary
#405F1A
secondary
#664095
accent
#48E08C
background
#F7F8F5
surface
#EDF0E9
border
#C8CBC5
text
#090C04
muted
#7B7D79

Preview Lab

Preview with #405F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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