#407E1C#407E1C

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

Color values

HEX#407E1C
RGBrgb(64, 126, 28)
HSLhsl(98, 64%, 30%)
HSVhsv(98, 78%, 49%)
CMYKcmyk(49.2%, 0%, 77.8%, 50.6%)
CIE-LABlab(47.10, -37.64, 44.07)
CIE-LCHlch(47.10, 57.96, 130.50°)
OKLaboklab(53.14% -0.1046 0.0987)
OKLCHoklch(53.14% 0.144 136.7)
XYZxyz(9.7845, 16.0949, 3.6894)
Luminance0.1610 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E1C #5A1C7E
analogous
#717E1C #407E1C #1C7E29
triadic
#407E1C #1C407E #7E1C40
tetradic
#407E1C #1C717E #5A1C7E #7E291C
square
#407E1C #1C717E #5A1C7E #7E291C
split-complementary
#407E1C #291C7E #7E1C71
monochromatic
#0D1A06 #274C11 #407E1C #59B027 #76D540

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407E1C#FFFFFF#000000##FFFFFF
##407E1C1.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)
#827307
Deuteranopia (green-blind)
#7A6E26
Tritanopia (blue-blind)
#3D796B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e1c;
/* rgb */ color: rgb(64, 126, 28);
/* oklch */ color: oklch(53.1% 0.144 136.7);
Tailwind
colors: {
  custom: {
    50: '#7ba460',
    500: '#407e1c',
    950: '#000000',
  },
}
SCSS
$custom: #407e1c;
$custom-light: #7ba460;
$custom-dark: #000000;
JSON
{
  "hex": "#407e1c",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 97.959,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53142,
    "c": 0.14381,
    "h": 136.7
  },
  "luminance": 0.16096
}

Semantic roles & 50–950 ramp

primary
#407E1C
secondary
#8944B2
accent
#41E7AA
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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