#407E1B#407E1B

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

Color values

HEX#407E1B
RGBrgb(64, 126, 27)
HSLhsl(98, 65%, 30%)
HSVhsv(98, 79%, 49%)
CMYKcmyk(49.2%, 0%, 78.6%, 50.6%)
CIE-LABlab(47.09, -37.71, 44.43)
CIE-LCHlch(47.09, 58.27, 130.33°)
OKLaboklab(53.14% -0.1049 0.0993)
OKLCHoklch(53.14% 0.144 136.6)
XYZxyz(9.7728, 16.0902, 3.6275)
Luminance0.1609 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E1B #591B7E
analogous
#717E1B #407E1B #1B7E28
triadic
#407E1B #1B407E #7E1B40
tetradic
#407E1B #1B717E #591B7E #7E281B
square
#407E1B #1B717E #591B7E #7E281B
split-complementary
#407E1B #281B7E #7E1B71
monochromatic
#0D1905 #264C10 #407E1B #5AB026 #77D63E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #407e1b;
/* rgb */ color: rgb(64, 126, 27);
/* oklch */ color: oklch(53.1% 0.144 136.6);
Tailwind
colors: {
  custom: {
    50: '#7ba45f',
    500: '#407e1b',
    950: '#000000',
  },
}
SCSS
$custom: #407e1b;
$custom-light: #7ba45f;
$custom-dark: #000000;
JSON
{
  "hex": "#407e1b",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 97.576,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.53135,
    "c": 0.14439,
    "h": 136.6
  },
  "luminance": 0.16091
}

Semantic roles & 50–950 ramp

primary
#407E1B
secondary
#8843B2
accent
#40E8A9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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