#407E17#407E17

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

Color values

HEX#407E17
RGBrgb(64, 126, 23)
HSLhsl(96, 69%, 29%)
HSVhsv(96, 82%, 49%)
CMYKcmyk(49.2%, 0%, 81.7%, 50.6%)
CIE-LABlab(47.07, -37.96, 45.76)
CIE-LCHlch(47.07, 59.45, 129.68°)
OKLaboklab(53.11% -0.1058 0.1014)
OKLCHoklch(53.11% 0.147 136.2)
XYZxyz(9.7296, 16.0729, 3.4001)
Luminance0.1607 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E17 #55177E
analogous
#747E17 #407E17 #177E22
triadic
#407E17 #17407E #7E1740
tetradic
#407E17 #17747E #55177E #7E2217
square
#407E17 #17747E #55177E #7E2217
split-complementary
#407E17 #22177E #7E1774
monochromatic
#0D1A05 #264A0E #407E17 #5AB220 #77DA35

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #407e17;
/* rgb */ color: rgb(64, 126, 23);
/* oklch */ color: oklch(53.1% 0.147 136.2);
Tailwind
colors: {
  custom: {
    50: '#7ba45e',
    500: '#407e17',
    950: '#000000',
  },
}
SCSS
$custom: #407e17;
$custom-light: #7ba45e;
$custom-dark: #000000;
JSON
{
  "hex": "#407e17",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 96.117,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53109,
    "c": 0.14656,
    "h": 136.2
  },
  "luminance": 0.16074
}

Semantic roles & 50–950 ramp

primary
#407E17
secondary
#843EB3
accent
#3CECA6
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407E17

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

Preview Lab → · Contrast checker → · Palette generator →

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