#406F12#406F12

#406F12 is a mid, vivid yellow-green. Relative luminance 0.125; OKLCH L 48.9% C 0.130 H 133.5°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#406F12
RGBrgb(64, 111, 18)
HSLhsl(90, 72%, 25%)
HSVhsv(90, 84%, 44%)
CMYKcmyk(42.3%, 0%, 83.8%, 56.5%)
CIE-LABlab(42.00, -31.74, 42.65)
CIE-LCHlch(42.00, 53.16, 126.66°)
OKLaboklab(48.94% -0.0894 0.0941)
OKLCHoklch(48.94% 0.13 133.5)
XYZxyz(7.9078, 12.5021, 2.5686)
Luminance0.1250 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406F12 #41126F
analogous
#6E6F12 #406F12 #126F13
triadic
#406F12 #12406F #6F1240
tetradic
#406F12 #126E6F #41126F #6F1312
square
#406F12 #126E6F #41126F #6F1312
split-complementary
#406F12 #13126F #6F126E
monochromatic
#0F1A04 #223A09 #406F12 #5EA41B #7DD823

Accessibility & contrast

On white

6.00
#406F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#406F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #406F12
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##406F12#FFFFFF#000000##FFFFFF
##406F121.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #406f12;
/* rgb */ color: rgb(64, 111, 18);
/* oklch */ color: oklch(48.9% 0.130 133.5);
Tailwind
colors: {
  custom: {
    50: '#7a9959',
    500: '#406f12',
    950: '#000000',
  },
}
SCSS
$custom: #406f12;
$custom-light: #7a9959;
$custom-dark: #000000;
JSON
{
  "hex": "#406f12",
  "rgb": {
    "r": 64,
    "g": 111,
    "b": 18
  },
  "hsl": {
    "h": 90.323,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.48943,
    "c": 0.12978,
    "h": 133.5
  },
  "luminance": 0.12503
}

Semantic roles & 50–950 ramp

primary
#406F12
secondary
#6F37A6
accent
#39EF95
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #406F12

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

Preview Lab → · Contrast checker → · Palette generator →

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