#406B1F#406B1F

#406B1F is a mid, moderate yellow-green. Relative luminance 0.117; OKLCH L 47.9% C 0.116 H 134.3°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#406B1F
RGBrgb(64, 107, 31)
HSLhsl(94, 55%, 27%)
HSVhsv(94, 71%, 42%)
CMYKcmyk(40.2%, 0%, 71%, 58%)
CIE-LABlab(40.74, -28.99, 36.41)
CIE-LCHlch(40.74, 46.54, 128.52°)
OKLaboklab(47.94% -0.0809 0.0831)
OKLCHoklch(47.94% 0.116 134.3)
XYZxyz(7.6192, 11.7039, 3.1537)
Luminance0.1170 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406B1F #4A1F6B
analogous
#666B1F #406B1F #1F6B24
triadic
#406B1F #1F406B #6B1F40
tetradic
#406B1F #1F666B #4A1F6B #6B241F
square
#406B1F #1F666B #4A1F6B #6B241F
split-complementary
#406B1F #241F6B #6B1F66
monochromatic
#0E1807 #243C11 #406B1F #5C9A2D #79C73D

Accessibility & contrast

On white

6.29
#406B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#406B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406B1F
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406B1F#FFFFFF#000000##FFFFFF
##406B1F1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6214
Deuteranopia (green-blind)
#695F26
Tritanopia (blue-blind)
#40675C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #406b1f;
/* rgb */ color: rgb(64, 107, 31);
/* oklch */ color: oklch(47.9% 0.116 134.3);
Tailwind
colors: {
  custom: {
    50: '#79955f',
    500: '#406b1f',
    950: '#000000',
  },
}
SCSS
$custom: #406b1f;
$custom-light: #79955f;
$custom-dark: #000000;
JSON
{
  "hex": "#406b1f",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 31
  },
  "hsl": {
    "h": 93.947,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.47939,
    "c": 0.116,
    "h": 134.3
  },
  "luminance": 0.11704
}

Semantic roles & 50–950 ramp

primary
#406B1F
secondary
#79479F
accent
#49DE9E
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D05
muted
#7B7E79

Preview Lab

Preview with #406B1F

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

Preview Lab → · Contrast checker → · Palette generator →

#406B1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva