#406D1C#406D1C

#406D1C is a mid, vivid yellow-green. Relative luminance 0.121; OKLCH L 48.5% C 0.121 H 134.2°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#406D1C
RGBrgb(64, 109, 28)
HSLhsl(93, 59%, 27%)
HSVhsv(93, 74%, 43%)
CMYKcmyk(41.3%, 0%, 74.3%, 57.3%)
CIE-LABlab(41.39, -30.17, 38.37)
CIE-LCHlch(41.39, 48.81, 128.17°)
OKLaboklab(48.46% -0.0844 0.0868)
OKLCHoklch(48.46% 0.121 134.2)
XYZxyz(7.7924, 12.1107, 3.0254)
Luminance0.1211 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406D1C #491C6D
analogous
#696D1C #406D1C #1C6D20
triadic
#406D1C #1C406D #6D1C40
tetradic
#406D1C #1C696D #491C6D #6D201C
square
#406D1C #1C696D #491C6D #6D201C
split-complementary
#406D1C #201C6D #6D1C69
monochromatic
#0E1806 #233C0F #406D1C #5D9E29 #79CC38

Accessibility & contrast

On white

6.14
#406D1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#406D1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406D1C
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406D1C#FFFFFF#000000##FFFFFF
##406D1C1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#71640F
Deuteranopia (green-blind)
#6B6023
Tritanopia (blue-blind)
#40695D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #406d1c;
/* rgb */ color: rgb(64, 109, 28);
/* oklch */ color: oklch(48.5% 0.121 134.2);
Tailwind
colors: {
  custom: {
    50: '#79975e',
    500: '#406d1c',
    950: '#000000',
  },
}
SCSS
$custom: #406d1c;
$custom-light: #79975e;
$custom-dark: #000000;
JSON
{
  "hex": "#406d1c",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 28
  },
  "hsl": {
    "h": 93.333,
    "s": 59.124,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48462,
    "c": 0.12105,
    "h": 134.2
  },
  "luminance": 0.12111
}

Semantic roles & 50–950 ramp

primary
#406D1C
secondary
#7843A2
accent
#45E29D
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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