#406F1C#406F1C

#406F1C is a mid, vivid yellow-green. Relative luminance 0.125; OKLCH L 49.0% C 0.124 H 134.6°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#406F1C
RGBrgb(64, 111, 28)
HSLhsl(94, 60%, 27%)
HSVhsv(94, 75%, 44%)
CMYKcmyk(42.3%, 0%, 74.8%, 56.5%)
CIE-LABlab(42.07, -31.08, 39.06)
CIE-LCHlch(42.07, 49.92, 128.51°)
OKLaboklab(49.01% -0.0869 0.0882)
OKLCHoklch(49.01% 0.124 134.6)
XYZxyz(8.0082, 12.5423, 3.0973)
Luminance0.1254 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406F1C #4B1C6F
analogous
#6A6F1C #406F1C #1C6F22
triadic
#406F1C #1C406F #6F1C40
tetradic
#406F1C #1C6A6F #4B1C6F #6F221C
square
#406F1C #1C6A6F #4B1C6F #6F221C
split-complementary
#406F1C #221C6F #6F1C6A
monochromatic
#0E1806 #243E10 #406F1C #5CA028 #79CD38

Accessibility & contrast

On white

5.99
#406F1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#406F1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406F1C
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406F1C#FFFFFF#000000##FFFFFF
##406F1C1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73660E
Deuteranopia (green-blind)
#6D6224
Tritanopia (blue-blind)
#3F6B5F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #406f1c;
/* rgb */ color: rgb(64, 111, 28);
/* oklch */ color: oklch(49.0% 0.124 134.6);
Tailwind
colors: {
  custom: {
    50: '#79995e',
    500: '#406f1c',
    950: '#000000',
  },
}
SCSS
$custom: #406f1c;
$custom-light: #79995e;
$custom-dark: #000000;
JSON
{
  "hex": "#406f1c",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 28
  },
  "hsl": {
    "h": 93.976,
    "s": 59.712,
    "l": 27.255
  },
  "oklch": {
    "l": 0.49013,
    "c": 0.12381,
    "h": 134.6
  },
  "luminance": 0.12543
}

Semantic roles & 50–950 ramp

primary
#406F1C
secondary
#7A43A4
accent
#45E39E
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #406F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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