#406E17#406E17

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

Color values

HEX#406E17
RGBrgb(64, 110, 23)
HSLhsl(92, 65%, 26%)
HSVhsv(92, 79%, 43%)
CMYKcmyk(41.8%, 0%, 79.1%, 56.9%)
CIE-LABlab(41.69, -30.99, 40.64)
CIE-LCHlch(41.69, 51.10, 127.32°)
OKLaboklab(48.7% -0.087 0.0907)
OKLCHoklch(48.7% 0.126 133.8)
XYZxyz(7.8448, 12.3033, 2.7719)
Luminance0.1230 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406E17 #45176E
analogous
#6B6E17 #406E17 #176E19
triadic
#406E17 #17406E #6E1740
tetradic
#406E17 #176B6E #45176E #6E1917
square
#406E17 #176B6E #45176E #6E1917
split-complementary
#406E17 #19176E #6E176B
monochromatic
#0F1905 #233B0C #406E17 #5DA122 #7BD32C

Accessibility & contrast

On white

6.07
#406E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#406E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406E17
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406E17#FFFFFF#000000##FFFFFF
##406E171.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736504
Deuteranopia (green-blind)
#6C6120
Tritanopia (blue-blind)
#40695D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #406e17;
/* rgb */ color: rgb(64, 110, 23);
/* oklch */ color: oklch(48.7% 0.126 133.8);
Tailwind
colors: {
  custom: {
    50: '#79985b',
    500: '#406e17',
    950: '#000000',
  },
}
SCSS
$custom: #406e17;
$custom-light: #79985b;
$custom-dark: #000000;
JSON
{
  "hex": "#406e17",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 23
  },
  "hsl": {
    "h": 91.724,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.48699,
    "c": 0.12569,
    "h": 133.8
  },
  "luminance": 0.12304
}

Semantic roles & 50–950 ramp

primary
#406E17
secondary
#733DA4
accent
#3FE899
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406E17

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

Preview Lab → · Contrast checker → · Palette generator →

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