#406B18#406B18

#406B18 is a mid, vivid yellow-green. Relative luminance 0.117; OKLCH L 47.9% C 0.121 H 133.3°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#406B18
RGBrgb(64, 107, 24)
HSLhsl(91, 63%, 26%)
HSVhsv(91, 78%, 42%)
CMYKcmyk(40.2%, 0%, 77.6%, 58%)
CIE-LABlab(40.69, -29.54, 39.28)
CIE-LCHlch(40.69, 49.14, 126.94°)
OKLaboklab(47.88% -0.083 0.088)
OKLCHoklch(47.88% 0.121 133.3)
XYZxyz(7.5368, 11.6710, 2.7196)
Luminance0.1167 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406B18 #43186B
analogous
#696B18 #406B18 #186B19
triadic
#406B18 #18406B #6B1840
tetradic
#406B18 #18696B #43186B #6B1918
square
#406B18 #18696B #43186B #6B1918
split-complementary
#406B18 #19186B #6B1869
monochromatic
#0F1906 #22390D #406B18 #5E9D23 #7CCF2E

Accessibility & contrast

On white

6.30
#406B18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#406B18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406B18
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406B18#FFFFFF#000000##FFFFFF
##406B181.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706208
Deuteranopia (green-blind)
#6A5F20
Tritanopia (blue-blind)
#40665B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #406b18;
/* rgb */ color: rgb(64, 107, 24);
/* oklch */ color: oklch(47.9% 0.121 133.3);
Tailwind
colors: {
  custom: {
    50: '#79955b',
    500: '#406b18',
    950: '#000000',
  },
}
SCSS
$custom: #406b18;
$custom-light: #79955b;
$custom-dark: #000000;
JSON
{
  "hex": "#406b18",
  "rgb": {
    "r": 64,
    "g": 107,
    "b": 24
  },
  "hsl": {
    "h": 91.084,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.47878,
    "c": 0.121,
    "h": 133.3
  },
  "luminance": 0.11671
}

Semantic roles & 50–950 ramp

primary
#406B18
secondary
#713EA1
accent
#41E697
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406B18

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

Preview Lab → · Contrast checker → · Palette generator →

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