#407C1F#407C1F

#407C1F is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.6% C 0.139 H 136.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#407C1F
RGBrgb(64, 124, 31)
HSLhsl(99, 60%, 30%)
HSVhsv(99, 75%, 49%)
CMYKcmyk(48.4%, 0%, 75%, 51.4%)
CIE-LABlab(46.45, -36.58, 42.29)
CIE-LCHlch(46.45, 55.92, 130.86°)
OKLaboklab(52.62% -0.1015 0.0954)
OKLCHoklch(52.62% 0.139 136.8)
XYZxyz(9.5690, 15.6036, 3.8036)
Luminance0.1560 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C1F #5B1F7C
analogous
#6E7C1F #407C1F #1F7C2D
triadic
#407C1F #1F407C #7C1F40
tetradic
#407C1F #1F6E7C #5B1F7C #7C2D1F
square
#407C1F #1F6E7C #5B1F7C #7C2D1F
split-complementary
#407C1F #2D1F7C #7C1F6E
monochromatic
#0D1A07 #274B13 #407C1F #59AD2B #76D045

Accessibility & contrast

On white

5.10
#407C1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#407C1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C1F
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C1F#FFFFFF#000000##FFFFFF
##407C1F1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710E
Deuteranopia (green-blind)
#786C28
Tritanopia (blue-blind)
#3D776A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c1f;
/* rgb */ color: rgb(64, 124, 31);
/* oklch */ color: oklch(52.6% 0.139 136.8);
Tailwind
colors: {
  custom: {
    50: '#7ba261',
    500: '#407c1f',
    950: '#000000',
  },
}
SCSS
$custom: #407c1f;
$custom-light: #7ba261;
$custom-dark: #000000;
JSON
{
  "hex": "#407c1f",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 98.71,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.52615,
    "c": 0.13933,
    "h": 136.8
  },
  "luminance": 0.15604
}

Semantic roles & 50–950 ramp

primary
#407C1F
secondary
#8A48AF
accent
#45E3AB
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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