#407E1E#407E1E

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

Color values

HEX#407E1E
RGBrgb(64, 126, 30)
HSLhsl(99, 62%, 31%)
HSVhsv(99, 76%, 49%)
CMYKcmyk(49.2%, 0%, 76.2%, 50.6%)
CIE-LABlab(47.11, -37.50, 43.34)
CIE-LCHlch(47.11, 57.31, 130.87°)
OKLaboklab(53.16% -0.1041 0.0975)
OKLCHoklch(53.16% 0.143 136.9)
XYZxyz(9.8093, 16.1048, 3.8197)
Luminance0.1610 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E1E #5C1E7E
analogous
#707E1E #407E1E #1E7E2C
triadic
#407E1E #1E407E #7E1E40
tetradic
#407E1E #1E707E #5C1E7E #7E2C1E
square
#407E1E #1E707E #5C1E7E #7E2C1E
split-complementary
#407E1E #2C1E7E #7E1E70
monochromatic
#0E1B06 #274D12 #407E1E #59AF2A #76D244

Accessibility & contrast

On white

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

On black

4.22
#407E1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##407E1E#FFFFFF#000000##FFFFFF
##407E1E1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82730B
Deuteranopia (green-blind)
#7A6E28
Tritanopia (blue-blind)
#3D796B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e1e;
/* rgb */ color: rgb(64, 126, 30);
/* oklch */ color: oklch(53.2% 0.143 136.9);
Tailwind
colors: {
  custom: {
    50: '#7ba461',
    500: '#407e1e',
    950: '#000000',
  },
}
SCSS
$custom: #407e1e;
$custom-light: #7ba461;
$custom-dark: #000000;
JSON
{
  "hex": "#407e1e",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 30
  },
  "hsl": {
    "h": 98.75,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53157,
    "c": 0.14259,
    "h": 136.9
  },
  "luminance": 0.16105
}

Semantic roles & 50–950 ramp

primary
#407E1E
secondary
#8B47B1
accent
#43E5AB
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407E1E

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

Preview Lab → · Contrast checker → · Palette generator →

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