#406912#406912

#406912 is a mid, vivid yellow-green. Relative luminance 0.112; OKLCH L 47.3% C 0.122 H 132.3°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#406912
RGBrgb(64, 105, 18)
HSLhsl(88, 71%, 24%)
HSVhsv(88, 83%, 41%)
CMYKcmyk(39%, 0%, 82.9%, 58.8%)
CIE-LABlab(39.98, -28.98, 40.77)
CIE-LCHlch(39.98, 50.02, 125.41°)
OKLaboklab(47.28% -0.082 0.0901)
OKLCHoklch(47.28% 0.122 132.3)
XYZxyz(7.2750, 11.2365, 2.3577)
Luminance0.1124 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406912 #3B1269
analogous
#696712 #406912 #146912
triadic
#406912 #124069 #691240
tetradic
#406912 #126967 #3B1269 #691214
square
#406912 #126967 #3B1269 #691214
split-complementary
#406912 #121469 #671269
monochromatic
#101A04 #203509 #406912 #609D1B #80D124

Accessibility & contrast

On white

6.47
#406912 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#406912 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406912
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406912#FFFFFF#000000##FFFFFF
##4069121.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6000
Deuteranopia (green-blind)
#685D1C
Tritanopia (blue-blind)
#416459
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #406912;
/* rgb */ color: rgb(64, 105, 18);
/* oklch */ color: oklch(47.3% 0.122 132.3);
Tailwind
colors: {
  custom: {
    50: '#799458',
    500: '#406912',
    950: '#000000',
  },
}
SCSS
$custom: #406912;
$custom-light: #799458;
$custom-dark: #000000;
JSON
{
  "hex": "#406912",
  "rgb": {
    "r": 64,
    "g": 105,
    "b": 18
  },
  "hsl": {
    "h": 88.276,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.47284,
    "c": 0.12184,
    "h": 132.3
  },
  "luminance": 0.11237
}

Semantic roles & 50–950 ramp

primary
#406912
secondary
#6836A1
accent
#3AED8F
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406912

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

Preview Lab → · Contrast checker → · Palette generator →

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