#407D1E#407D1E

#407D1E is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 52.9% C 0.141 H 136.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#407D1E
RGBrgb(64, 125, 30)
HSLhsl(99, 61%, 30%)
HSVhsv(99, 76%, 49%)
CMYKcmyk(48.8%, 0%, 76%, 51%)
CIE-LABlab(46.78, -37.08, 43.01)
CIE-LCHlch(46.78, 56.79, 130.77°)
OKLaboklab(52.88% -0.103 0.0968)
OKLCHoklch(52.88% 0.141 136.8)
XYZxyz(9.6820, 15.8503, 3.7773)
Luminance0.1585 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D1E #5B1E7D
analogous
#6F7D1E #407D1E #1E7D2B
triadic
#407D1E #1E407D #7D1E40
tetradic
#407D1E #1E6F7D #5B1E7D #7D2B1E
square
#407D1E #1E6F7D #5B1E7D #7D2B1E
split-complementary
#407D1E #2B1E7D #7D1E6F
monochromatic
#0D1A06 #274C12 #407D1E #59AE2A #76D243

Accessibility & contrast

On white

5.04
#407D1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#407D1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D1E
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D1E#FFFFFF#000000##FFFFFF
##407D1E1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720C
Deuteranopia (green-blind)
#796D28
Tritanopia (blue-blind)
#3D786B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d1e;
/* rgb */ color: rgb(64, 125, 30);
/* oklch */ color: oklch(52.9% 0.141 136.8);
Tailwind
colors: {
  custom: {
    50: '#7ba361',
    500: '#407d1e',
    950: '#000000',
  },
}
SCSS
$custom: #407d1e;
$custom-light: #7ba361;
$custom-dark: #000000;
JSON
{
  "hex": "#407d1e",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 30
  },
  "hsl": {
    "h": 98.526,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52882,
    "c": 0.14129,
    "h": 136.8
  },
  "luminance": 0.15851
}

Semantic roles & 50–950 ramp

primary
#407D1E
secondary
#8A46B0
accent
#43E4AB
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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