#407F1F#407F1F

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

Color values

HEX#407F1F
RGBrgb(64, 127, 31)
HSLhsl(99, 61%, 31%)
HSVhsv(99, 76%, 50%)
CMYKcmyk(49.6%, 0%, 75.6%, 50.2%)
CIE-LABlab(47.45, -37.85, 43.30)
CIE-LCHlch(47.45, 57.51, 131.16°)
OKLaboklab(53.44% -0.105 0.0975)
OKLCHoklch(53.44% 0.143 137.1)
XYZxyz(9.9507, 16.3670, 3.9309)
Luminance0.1637 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F1F #5E1F7F
analogous
#707F1F #407F1F #1F7F2E
triadic
#407F1F #1F407F #7F1F40
tetradic
#407F1F #1F707F #5E1F7F #7F2E1F
square
#407F1F #1F707F #5E1F7F #7F2E1F
split-complementary
#407F1F #2E1F7F #7F1F70
monochromatic
#0E1D07 #274E13 #407F1F #59B02B #76D246

Accessibility & contrast

On white

4.91
#407F1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407F1F
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F1F#FFFFFF#000000##FFFFFF
##407F1F1.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #407f1f;
/* rgb */ color: rgb(64, 127, 31);
/* oklch */ color: oklch(53.4% 0.143 137.1);
Tailwind
colors: {
  custom: {
    50: '#7ba562',
    500: '#407f1f',
    950: '#000000',
  },
}
SCSS
$custom: #407f1f;
$custom-light: #7ba562;
$custom-dark: #000000;
JSON
{
  "hex": "#407f1f",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 99.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.53439,
    "c": 0.14327,
    "h": 137.1
  },
  "luminance": 0.16368
}

Semantic roles & 50–950 ramp

primary
#407F1F
secondary
#8D48B2
accent
#44E4AD
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #407F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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