#406F18#406F18

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

Color values

HEX#406F18
RGBrgb(64, 111, 24)
HSLhsl(92, 64%, 26%)
HSVhsv(92, 78%, 44%)
CMYKcmyk(42.3%, 0%, 78.4%, 56.5%)
CIE-LABlab(42.04, -31.37, 40.60)
CIE-LCHlch(42.04, 51.31, 127.69°)
OKLaboklab(48.98% -0.088 0.0908)
OKLCHoklch(48.98% 0.126 134.1)
XYZxyz(7.9635, 12.5244, 2.8618)
Luminance0.1253 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406F18 #47186F
analogous
#6C6F18 #406F18 #186F1C
triadic
#406F18 #18406F #6F1840
tetradic
#406F18 #186C6F #47186F #6F1C18
square
#406F18 #186C6F #47186F #6F1C18
split-complementary
#406F18 #1C186F #6F186C
monochromatic
#0F1905 #233D0D #406F18 #5DA123 #7AD22F

Accessibility & contrast

On white

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

On black

3.51
#406F18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##406F18#FFFFFF#000000##FFFFFF
##406F181.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #406f18;
/* rgb */ color: rgb(64, 111, 24);
/* oklch */ color: oklch(49.0% 0.126 134.1);
Tailwind
colors: {
  custom: {
    50: '#79995c',
    500: '#406f18',
    950: '#000000',
  },
}
SCSS
$custom: #406f18;
$custom-light: #79995c;
$custom-dark: #000000;
JSON
{
  "hex": "#406f18",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 24
  },
  "hsl": {
    "h": 92.414,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.48982,
    "c": 0.12643,
    "h": 134.1
  },
  "luminance": 0.12525
}

Semantic roles & 50–950 ramp

primary
#406F18
secondary
#763EA5
accent
#40E79B
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #406F18

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

Preview Lab → · Contrast checker → · Palette generator →

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