#407F1E#407F1E

#407F1E is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.4% C 0.144 H 137.0°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#407F1E
RGBrgb(64, 127, 30)
HSLhsl(99, 62%, 31%)
HSVhsv(99, 76%, 50%)
CMYKcmyk(49.6%, 0%, 76.4%, 50.2%)
CIE-LABlab(47.45, -37.92, 43.67)
CIE-LCHlch(47.45, 57.84, 130.97°)
OKLaboklab(53.43% -0.1052 0.0982)
OKLCHoklch(53.43% 0.144 137)
XYZxyz(9.9378, 16.3618, 3.8625)
Luminance0.1636 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F1E #5D1E7F
analogous
#707F1E #407F1E #1E7F2C
triadic
#407F1E #1E407F #7F1E40
tetradic
#407F1E #1E707F #5D1E7F #7F2C1E
square
#407F1E #1E707F #5D1E7F #7F2C1E
split-complementary
#407F1E #2C1E7F #7F1E70
monochromatic
#0E1C07 #274D12 #407F1E #59B12A #76D344

Accessibility & contrast

On white

4.92
#407F1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#407F1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F1E
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F1E#FFFFFF#000000##FFFFFF
##407F1E1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83740B
Deuteranopia (green-blind)
#7B6F28
Tritanopia (blue-blind)
#3C7A6C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #407f1e;
/* rgb */ color: rgb(64, 127, 30);
/* oklch */ color: oklch(53.4% 0.144 137.0);
Tailwind
colors: {
  custom: {
    50: '#7ba561',
    500: '#407f1e',
    950: '#000000',
  },
}
SCSS
$custom: #407f1e;
$custom-light: #7ba561;
$custom-dark: #000000;
JSON
{
  "hex": "#407f1e",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 30
  },
  "hsl": {
    "h": 98.969,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.53431,
    "c": 0.1439,
    "h": 137
  },
  "luminance": 0.16362
}

Semantic roles & 50–950 ramp

primary
#407F1E
secondary
#8C47B2
accent
#43E5AC
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407F1E

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

Preview Lab → · Contrast checker → · Palette generator →

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