#407E12#407E12

#407E12 is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.1% C 0.149 H 135.8°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#407E12
RGBrgb(64, 126, 18)
HSLhsl(94, 75%, 28%)
HSVhsv(94, 86%, 49%)
CMYKcmyk(49.2%, 0%, 85.7%, 50.6%)
CIE-LABlab(47.05, -38.22, 47.23)
CIE-LCHlch(47.05, 60.76, 128.98°)
OKLaboklab(53.08% -0.1068 0.1038)
OKLCHoklch(53.08% 0.149 135.8)
XYZxyz(9.6841, 16.0547, 3.1607)
Luminance0.1605 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E12 #50127E
analogous
#767E12 #407E12 #127E1A
triadic
#407E12 #12407E #7E1240
tetradic
#407E12 #12767E #50127E #7E1A12
square
#407E12 #12767E #50127E #7E1A12
split-complementary
#407E12 #1A127E #7E1276
monochromatic
#0E1B04 #25480A #407E12 #5BB41A #78E12A

Accessibility & contrast

On white

4.99
#407E12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#407E12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407E12
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E12#FFFFFF#000000##FFFFFF
##407E121.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7B6E20
Tritanopia (blue-blind)
#3D796B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e12;
/* rgb */ color: rgb(64, 126, 18);
/* oklch */ color: oklch(53.1% 0.149 135.8);
Tailwind
colors: {
  custom: {
    50: '#7ca45c',
    500: '#407e12',
    950: '#000000',
  },
}
SCSS
$custom: #407e12;
$custom-light: #7ca45c;
$custom-dark: #000000;
JSON
{
  "hex": "#407e12",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 18
  },
  "hsl": {
    "h": 94.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53082,
    "c": 0.14889,
    "h": 135.8
  },
  "luminance": 0.16055
}

Semantic roles & 50–950 ramp

primary
#407E12
secondary
#7F38B4
accent
#36F2A2
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #407E12

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

Preview Lab → · Contrast checker → · Palette generator →

#407E12 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva