#407A1F#407A1F

#407A1F is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.1% C 0.137 H 136.5°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#407A1F
RGBrgb(64, 122, 31)
HSLhsl(98, 59%, 30%)
HSVhsv(98, 75%, 48%)
CMYKcmyk(47.5%, 0%, 74.6%, 52.2%)
CIE-LABlab(45.78, -35.72, 41.62)
CIE-LCHlch(45.78, 54.85, 130.64°)
OKLaboklab(52.07% -0.0992 0.094)
OKLCHoklch(52.07% 0.137 136.5)
XYZxyz(9.3209, 15.1074, 3.7209)
Luminance0.1511 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A1F #591F7A
analogous
#6D7A1F #407A1F #1F7A2C
triadic
#407A1F #1F407A #7A1F40
tetradic
#407A1F #1F6D7A #591F7A #7A2C1F
square
#407A1F #1F6D7A #591F7A #7A2C1F
split-complementary
#407A1F #2C1F7A #7A1F6D
monochromatic
#0D1806 #264913 #407A1F #5AAB2B #77CF44

Accessibility & contrast

On white

5.22
#407A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#407A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A1F
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A1F#FFFFFF#000000##FFFFFF
##407A1F1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0F
Deuteranopia (green-blind)
#776B28
Tritanopia (blue-blind)
#3D7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407a1f;
/* rgb */ color: rgb(64, 122, 31);
/* oklch */ color: oklch(52.1% 0.137 136.5);
Tailwind
colors: {
  custom: {
    50: '#7ba161',
    500: '#407a1f',
    950: '#000000',
  },
}
SCSS
$custom: #407a1f;
$custom-light: #7ba161;
$custom-dark: #000000;
JSON
{
  "hex": "#407a1f",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 98.242,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.52066,
    "c": 0.13668,
    "h": 136.5
  },
  "luminance": 0.15108
}

Semantic roles & 50–950 ramp

primary
#407A1F
secondary
#8847AD
accent
#45E3AA
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #407A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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