#406E1C#406E1C

#406E1C is a mid, vivid yellow-green. Relative luminance 0.123; OKLCH L 48.7% C 0.122 H 134.4°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#406E1C
RGBrgb(64, 110, 28)
HSLhsl(94, 59%, 27%)
HSVhsv(94, 75%, 43%)
CMYKcmyk(41.8%, 0%, 74.5%, 56.9%)
CIE-LABlab(41.73, -30.63, 38.72)
CIE-LCHlch(41.73, 49.37, 128.35°)
OKLaboklab(48.74% -0.0856 0.0875)
OKLCHoklch(48.74% 0.122 134.4)
XYZxyz(7.8997, 12.3253, 3.0612)
Luminance0.1233 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406E1C #4A1C6E
analogous
#696E1C #406E1C #1C6E21
triadic
#406E1C #1C406E #6E1C40
tetradic
#406E1C #1C696E #4A1C6E #6E211C
square
#406E1C #1C696E #4A1C6E #6E211C
split-complementary
#406E1C #211C6E #6E1C69
monochromatic
#0E1806 #243D10 #406E1C #5C9F28 #79CC38

Accessibility & contrast

On white

6.06
#406E1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#406E1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406E1C
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406E1C#FFFFFF#000000##FFFFFF
##406E1C1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#72650E
Deuteranopia (green-blind)
#6C6124
Tritanopia (blue-blind)
#3F6A5E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #406e1c;
/* rgb */ color: rgb(64, 110, 28);
/* oklch */ color: oklch(48.7% 0.122 134.4);
Tailwind
colors: {
  custom: {
    50: '#79985e',
    500: '#406e1c',
    950: '#000000',
  },
}
SCSS
$custom: #406e1c;
$custom-light: #79985e;
$custom-dark: #000000;
JSON
{
  "hex": "#406e1c",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 28
  },
  "hsl": {
    "h": 93.659,
    "s": 59.42,
    "l": 27.059
  },
  "oklch": {
    "l": 0.48738,
    "c": 0.12243,
    "h": 134.4
  },
  "luminance": 0.12326
}

Semantic roles & 50–950 ramp

primary
#406E1C
secondary
#7943A3
accent
#45E39D
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D05
muted
#7B7E79

Preview Lab

Preview with #406E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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