#406D18#406D18

#406D18 is a mid, vivid yellow-green. Relative luminance 0.121; OKLCH L 48.4% C 0.124 H 133.7°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#406D18
RGBrgb(64, 109, 24)
HSLhsl(92, 64%, 26%)
HSVhsv(92, 78%, 43%)
CMYKcmyk(41.3%, 0%, 78%, 57.3%)
CIE-LABlab(41.36, -30.46, 39.94)
CIE-LCHlch(41.36, 50.23, 127.33°)
OKLaboklab(48.43% -0.0855 0.0894)
OKLCHoklch(48.43% 0.124 133.7)
XYZxyz(7.7477, 12.0928, 2.7899)
Luminance0.1209 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406D18 #45186D
analogous
#6A6D18 #406D18 #186D1A
triadic
#406D18 #18406D #6D1840
tetradic
#406D18 #186A6D #45186D #6D1A18
square
#406D18 #186A6D #45186D #6D1A18
split-complementary
#406D18 #1A186D #6D186A
monochromatic
#0F1906 #233B0D #406D18 #5D9F23 #7BD12E

Accessibility & contrast

On white

6.14
#406D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#406D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406D18
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406D18#FFFFFF#000000##FFFFFF
##406D181.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726407
Deuteranopia (green-blind)
#6B6020
Tritanopia (blue-blind)
#40685D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #406d18;
/* rgb */ color: rgb(64, 109, 24);
/* oklch */ color: oklch(48.4% 0.124 133.7);
Tailwind
colors: {
  custom: {
    50: '#79975c',
    500: '#406d18',
    950: '#000000',
  },
}
SCSS
$custom: #406d18;
$custom-light: #79975c;
$custom-dark: #000000;
JSON
{
  "hex": "#406d18",
  "rgb": {
    "r": 64,
    "g": 109,
    "b": 24
  },
  "hsl": {
    "h": 91.765,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.4843,
    "c": 0.12372,
    "h": 133.7
  },
  "luminance": 0.12093
}

Semantic roles & 50–950 ramp

primary
#406D18
secondary
#733EA3
accent
#41E799
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406D18

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

Preview Lab → · Contrast checker → · Palette generator →

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