#407B1F#407B1F

#407B1F is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.3% C 0.138 H 136.7°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#407B1F
RGBrgb(64, 123, 31)
HSLhsl(98, 60%, 30%)
HSVhsv(98, 75%, 48%)
CMYKcmyk(48%, 0%, 74.8%, 51.8%)
CIE-LABlab(46.12, -36.15, 41.95)
CIE-LCHlch(46.12, 55.38, 130.75°)
OKLaboklab(52.34% -0.1004 0.0947)
OKLCHoklch(52.34% 0.138 136.7)
XYZxyz(9.4444, 15.3542, 3.7621)
Luminance0.1535 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B1F #5A1F7B
analogous
#6E7B1F #407B1F #1F7B2C
triadic
#407B1F #1F407B #7B1F40
tetradic
#407B1F #1F6E7B #5A1F7B #7B2C1F
square
#407B1F #1F6E7B #5A1F7B #7B2C1F
split-complementary
#407B1F #2C1F7B #7B1F6E
monochromatic
#0D1906 #274A13 #407B1F #59AC2B #76D044

Accessibility & contrast

On white

5.16
#407B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#407B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407B1F
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407B1F#FFFFFF#000000##FFFFFF
##407B1F1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#786B28
Tritanopia (blue-blind)
#3D7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b1f;
/* rgb */ color: rgb(64, 123, 31);
/* oklch */ color: oklch(52.3% 0.138 136.7);
Tailwind
colors: {
  custom: {
    50: '#7ba261',
    500: '#407b1f',
    950: '#000000',
  },
}
SCSS
$custom: #407b1f;
$custom-light: #7ba261;
$custom-dark: #000000;
JSON
{
  "hex": "#407b1f",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 98.478,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52341,
    "c": 0.13801,
    "h": 136.7
  },
  "luminance": 0.15355
}

Semantic roles & 50–950 ramp

primary
#407B1F
secondary
#8948AE
accent
#45E3AA
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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