#407E11#407E11

#407E11 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#407E11
RGBrgb(64, 126, 17)
HSLhsl(94, 76%, 28%)
HSVhsv(94, 87%, 49%)
CMYKcmyk(49.2%, 0%, 86.5%, 50.6%)
CIE-LABlab(47.04, -38.27, 47.50)
CIE-LCHlch(47.04, 61.00, 128.85°)
OKLaboklab(53.08% -0.107 0.1042)
OKLCHoklch(53.08% 0.149 135.8)
XYZxyz(9.6761, 16.0515, 3.1186)
Luminance0.1605 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E11 #4F117E
analogous
#777E11 #407E11 #117E18
triadic
#407E11 #11407E #7E1140
tetradic
#407E11 #11777E #4F117E #7E1811
square
#407E11 #11777E #4F117E #7E1811
split-complementary
#407E11 #18117E #7E1177
monochromatic
#0E1B04 #25480A #407E11 #5BB418 #78E227

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407E11#FFFFFF#000000##FFFFFF
##407E111.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)
#7B6E1F
Tritanopia (blue-blind)
#3D796B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e11;
/* rgb */ color: rgb(64, 126, 17);
/* oklch */ color: oklch(53.1% 0.149 135.8);
Tailwind
colors: {
  custom: {
    50: '#7ca45b',
    500: '#407e11',
    950: '#000000',
  },
}
SCSS
$custom: #407e11;
$custom-light: #7ca45b;
$custom-dark: #000000;
JSON
{
  "hex": "#407e11",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 17
  },
  "hsl": {
    "h": 94.128,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53077,
    "c": 0.1493,
    "h": 135.8
  },
  "luminance": 0.16052
}

Semantic roles & 50–950 ramp

primary
#407E11
secondary
#7E37B4
accent
#35F3A1
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #407E11

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

Preview Lab → · Contrast checker → · Palette generator →

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