#406718#406718

#406718 is a mid, moderate yellow-green. Relative luminance 0.109; OKLCH L 46.8% C 0.115 H 132.4°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#406718
RGBrgb(64, 103, 24)
HSLhsl(90, 62%, 25%)
HSVhsv(90, 77%, 40%)
CMYKcmyk(37.9%, 0%, 76.7%, 59.6%)
CIE-LABlab(39.34, -27.65, 37.94)
CIE-LCHlch(39.34, 46.95, 126.09°)
OKLaboklab(46.77% -0.0779 0.0852)
OKLCHoklch(46.77% 0.115 132.4)
XYZxyz(7.1294, 10.8561, 2.5838)
Luminance0.1086 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406718 #3F1867
analogous
#676718 #406718 #196718
triadic
#406718 #184067 #671840
tetradic
#406718 #186767 #3F1867 #671819
square
#406718 #186767 #3F1867 #671819
split-complementary
#406718 #181967 #671867
monochromatic
#0F1906 #21350C #406718 #5F9924 #7ECA2F

Accessibility & contrast

On white

6.62
#406718 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#406718 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406718
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406718#FFFFFF#000000##FFFFFF
##4067181.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6C5F0A
Deuteranopia (green-blind)
#665C1F
Tritanopia (blue-blind)
#416358
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #406718;
/* rgb */ color: rgb(64, 103, 24);
/* oklch */ color: oklch(46.8% 0.115 132.4);
Tailwind
colors: {
  custom: {
    50: '#79925b',
    500: '#406718',
    950: '#000000',
  },
}
SCSS
$custom: #406718;
$custom-light: #79925b;
$custom-dark: #000000;
JSON
{
  "hex": "#406718",
  "rgb": {
    "r": 64,
    "g": 103,
    "b": 24
  },
  "hsl": {
    "h": 89.62,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.46774,
    "c": 0.11547,
    "h": 132.4
  },
  "luminance": 0.10856
}

Semantic roles & 50–950 ramp

primary
#406718
secondary
#6D3E9D
accent
#43E593
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406718

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

Preview Lab → · Contrast checker → · Palette generator →

#406718 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva