#406A12#406A12

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

Color values

HEX#406A12
RGBrgb(64, 106, 18)
HSLhsl(89, 71%, 24%)
HSVhsv(89, 83%, 42%)
CMYKcmyk(39.6%, 0%, 83%, 58.4%)
CIE-LABlab(40.31, -29.45, 41.08)
CIE-LCHlch(40.31, 50.55, 125.63°)
OKLaboklab(47.56% -0.0832 0.0908)
OKLCHoklch(47.56% 0.123 132.5)
XYZxyz(7.3775, 11.4414, 2.3918)
Luminance0.1144 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#406A12 #3C126A
analogous
#6A6812 #406A12 #146A12
triadic
#406A12 #12406A #6A1240
tetradic
#406A12 #126A68 #3C126A #6A1214
square
#406A12 #126A68 #3C126A #6A1214
split-complementary
#406A12 #12146A #68126A
monochromatic
#101A04 #203609 #406A12 #609E1B #7FD324

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##406A12#FFFFFF#000000##FFFFFF
##406A121.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)
#695E1C
Tritanopia (blue-blind)
#41655A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #406a12;
/* rgb */ color: rgb(64, 106, 18);
/* oklch */ color: oklch(47.6% 0.123 132.5);
Tailwind
colors: {
  custom: {
    50: '#799558',
    500: '#406a12',
    950: '#000000',
  },
}
SCSS
$custom: #406a12;
$custom-light: #799558;
$custom-dark: #000000;
JSON
{
  "hex": "#406a12",
  "rgb": {
    "r": 64,
    "g": 106,
    "b": 18
  },
  "hsl": {
    "h": 88.636,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.4756,
    "c": 0.12317,
    "h": 132.5
  },
  "luminance": 0.11442
}

Semantic roles & 50–950 ramp

primary
#406A12
secondary
#6936A2
accent
#3AEE90
background
#F7F9F5
surface
#EEF1E9
border
#C9CBC5
text
#090D04
muted
#7B7E79

Preview Lab

Preview with #406A12

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

Preview Lab → · Contrast checker → · Palette generator →

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