#406E18#406E18

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

Color values

HEX#406E18
RGBrgb(64, 110, 24)
HSLhsl(92, 64%, 26%)
HSVhsv(92, 78%, 43%)
CMYKcmyk(41.8%, 0%, 78.2%, 56.9%)
CIE-LABlab(41.70, -30.92, 40.27)
CIE-LCHlch(41.70, 50.77, 127.52°)
OKLaboklab(48.71% -0.0868 0.0901)
OKLCHoklch(48.71% 0.125 133.9)
XYZxyz(7.8550, 12.3074, 2.8257)
Luminance0.1231 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406E18 #46186E
analogous
#6B6E18 #406E18 #186E1B
triadic
#406E18 #18406E #6E1840
tetradic
#406E18 #186B6E #46186E #6E1B18
square
#406E18 #186B6E #46186E #6E1B18
split-complementary
#406E18 #1B186E #6E186B
monochromatic
#0F1905 #233C0D #406E18 #5DA023 #7BD22F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##406E18#FFFFFF#000000##FFFFFF
##406E181.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)
#736506
Deuteranopia (green-blind)
#6C6121
Tritanopia (blue-blind)
#40695E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #406e18;
/* rgb */ color: rgb(64, 110, 24);
/* oklch */ color: oklch(48.7% 0.125 133.9);
Tailwind
colors: {
  custom: {
    50: '#79985c',
    500: '#406e18',
    950: '#000000',
  },
}
SCSS
$custom: #406e18;
$custom-light: #79985c;
$custom-dark: #000000;
JSON
{
  "hex": "#406e18",
  "rgb": {
    "r": 64,
    "g": 110,
    "b": 24
  },
  "hsl": {
    "h": 92.093,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.48706,
    "c": 0.12508,
    "h": 133.9
  },
  "luminance": 0.12308
}

Semantic roles & 50–950 ramp

primary
#406E18
secondary
#743EA4
accent
#41E79A
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406E18

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

Preview Lab → · Contrast checker → · Palette generator →

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