#406F17#406F17

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

Color values

HEX#406F17
RGBrgb(64, 111, 23)
HSLhsl(92, 66%, 26%)
HSVhsv(92, 79%, 44%)
CMYKcmyk(42.3%, 0%, 79.3%, 56.5%)
CIE-LABlab(42.03, -31.44, 40.96)
CIE-LCHlch(42.03, 51.64, 127.51°)
OKLaboklab(48.98% -0.0882 0.0914)
OKLCHoklch(48.98% 0.127 134)
XYZxyz(7.9533, 12.5203, 2.8080)
Luminance0.1252 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406F17 #46176F
analogous
#6C6F17 #406F17 #176F1A
triadic
#406F17 #17406F #6F1740
tetradic
#406F17 #176C6F #46176F #6F1A17
square
#406F17 #176C6F #46176F #6F1A17
split-complementary
#406F17 #1A176F #6F176C
monochromatic
#0F1905 #233C0C #406F17 #5DA222 #7BD32D

Accessibility & contrast

On white

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

On black

3.50
#406F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##406F17#FFFFFF#000000##FFFFFF
##406F171.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746604
Deuteranopia (green-blind)
#6D6220
Tritanopia (blue-blind)
#406A5E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #406f17;
/* rgb */ color: rgb(64, 111, 23);
/* oklch */ color: oklch(49.0% 0.127 134.0);
Tailwind
colors: {
  custom: {
    50: '#79995b',
    500: '#406f17',
    950: '#000000',
  },
}
SCSS
$custom: #406f17;
$custom-light: #79995b;
$custom-dark: #000000;
JSON
{
  "hex": "#406f17",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 23
  },
  "hsl": {
    "h": 92.045,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.48975,
    "c": 0.12704,
    "h": 134
  },
  "luminance": 0.12521
}

Semantic roles & 50–950 ramp

primary
#406F17
secondary
#743DA5
accent
#3FE99A
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #406F17

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

Preview Lab → · Contrast checker → · Palette generator →

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