#406C18#406C18

#406C18 is a mid, vivid yellow-green. Relative luminance 0.119; OKLCH L 48.2% C 0.122 H 133.5°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#406C18
RGBrgb(64, 108, 24)
HSLhsl(91, 64%, 26%)
HSVhsv(91, 78%, 42%)
CMYKcmyk(40.7%, 0%, 77.8%, 57.6%)
CIE-LABlab(41.03, -30.00, 39.61)
CIE-LCHlch(41.03, 49.69, 127.14°)
OKLaboklab(48.15% -0.0843 0.0887)
OKLCHoklch(48.15% 0.122 133.5)
XYZxyz(7.6417, 11.8807, 2.7545)
Luminance0.1188 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406C18 #44186C
analogous
#6A6C18 #406C18 #186C1A
triadic
#406C18 #18406C #6C1840
tetradic
#406C18 #186A6C #44186C #6C1A18
square
#406C18 #186A6C #44186C #6C1A18
split-complementary
#406C18 #1A186C #6C186A
monochromatic
#0F1906 #223A0D #406C18 #5E9E23 #7BD02E

Accessibility & contrast

On white

6.22
#406C18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#406C18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406C18
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406C18#FFFFFF#000000##FFFFFF
##406C181.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#716307
Deuteranopia (green-blind)
#6B5F20
Tritanopia (blue-blind)
#40675C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #406c18;
/* rgb */ color: rgb(64, 108, 24);
/* oklch */ color: oklch(48.2% 0.122 133.5);
Tailwind
colors: {
  custom: {
    50: '#79965b',
    500: '#406c18',
    950: '#000000',
  },
}
SCSS
$custom: #406c18;
$custom-light: #79965b;
$custom-dark: #000000;
JSON
{
  "hex": "#406c18",
  "rgb": {
    "r": 64,
    "g": 108,
    "b": 24
  },
  "hsl": {
    "h": 91.429,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.48154,
    "c": 0.12236,
    "h": 133.5
  },
  "luminance": 0.11881
}

Semantic roles & 50–950 ramp

primary
#406C18
secondary
#723EA2
accent
#41E798
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406C18

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

Preview Lab → · Contrast checker → · Palette generator →

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