#406A0F#406A0F

#406A0F is a mid, vivid yellow-green. Relative luminance 0.114; OKLCH L 47.5% C 0.125 H 132.3°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#406A0F
RGBrgb(64, 106, 15)
HSLhsl(88, 75%, 24%)
HSVhsv(88, 86%, 42%)
CMYKcmyk(39.6%, 0%, 85.8%, 58.4%)
CIE-LABlab(40.30, -29.61, 42.01)
CIE-LCHlch(40.30, 51.40, 125.17°)
OKLaboklab(47.54% -0.0839 0.0923)
OKLCHoklch(47.54% 0.125 132.3)
XYZxyz(7.3545, 11.4322, 2.2710)
Luminance0.1143 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406A0F #390F6A
analogous
#6A660F #406A0F #126A0F
triadic
#406A0F #0F406A #6A0F40
tetradic
#406A0F #0F6A66 #390F6A #6A0F12
square
#406A0F #0F6A66 #390F6A #6A0F12
split-complementary
#406A0F #0F126A #660F6A
monochromatic
#101B04 #203407 #406A0F #60A017 #81D51E

Accessibility & contrast

On white

6.39
#406A0F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#406A0F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406A0F
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406A0F#FFFFFF#000000##FFFFFF
##406A0F1.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6100
Deuteranopia (green-blind)
#695E1A
Tritanopia (blue-blind)
#41655A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #406a0f;
/* rgb */ color: rgb(64, 106, 15);
/* oklch */ color: oklch(47.5% 0.125 132.3);
Tailwind
colors: {
  custom: {
    50: '#799557',
    500: '#406a0f',
    950: '#000000',
  },
}
SCSS
$custom: #406a0f;
$custom-light: #799557;
$custom-dark: #000000;
JSON
{
  "hex": "#406a0f",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 15
  },
  "hsl": {
    "h": 87.692,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.47543,
    "c": 0.12468,
    "h": 132.3
  },
  "luminance": 0.11433
}

Semantic roles & 50–950 ramp

primary
#406A0F
secondary
#6632A2
accent
#36F28D
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D03
muted
#7B7E78

Preview Lab

Preview with #406A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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