#407E16#407E16

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

Color values

HEX#407E16
RGBrgb(64, 126, 22)
HSLhsl(96, 70%, 29%)
HSVhsv(96, 83%, 49%)
CMYKcmyk(49.2%, 0%, 82.5%, 50.6%)
CIE-LABlab(47.06, -38.01, 46.07)
CIE-LCHlch(47.06, 59.73, 129.53°)
OKLaboklab(53.1% -0.106 0.1019)
OKLCHoklch(53.1% 0.147 136.1)
XYZxyz(9.7198, 16.0690, 3.3484)
Luminance0.1607 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E16 #54167E
analogous
#747E16 #407E16 #167E20
triadic
#407E16 #16407E #7E1640
tetradic
#407E16 #16747E #54167E #7E2016
square
#407E16 #16747E #54167E #7E2016
split-complementary
#407E16 #20167E #7E1674
monochromatic
#0D1A05 #264A0D #407E16 #5AB21F #77DB33

Accessibility & contrast

On white

4.98
#407E16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407E16
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E16#FFFFFF#000000##FFFFFF
##407E161.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #407e16;
/* rgb */ color: rgb(64, 126, 22);
/* oklch */ color: oklch(53.1% 0.147 136.1);
Tailwind
colors: {
  custom: {
    50: '#7ca45d',
    500: '#407e16',
    950: '#000000',
  },
}
SCSS
$custom: #407e16;
$custom-light: #7ca45d;
$custom-dark: #000000;
JSON
{
  "hex": "#407e16",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 22
  },
  "hsl": {
    "h": 95.769,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53103,
    "c": 0.14706,
    "h": 136.1
  },
  "luminance": 0.1607
}

Semantic roles & 50–950 ramp

primary
#407E16
secondary
#833DB3
accent
#3BEDA5
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407E16

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

Preview Lab → · Contrast checker → · Palette generator →

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