#407B1E#407B1E

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

Color values

HEX#407B1E
RGBrgb(64, 123, 30)
HSLhsl(98, 61%, 30%)
HSVhsv(98, 76%, 48%)
CMYKcmyk(48%, 0%, 75.6%, 51.8%)
CIE-LABlab(46.11, -36.23, 42.34)
CIE-LCHlch(46.11, 55.72, 130.55°)
OKLaboklab(52.33% -0.1007 0.0954)
OKLCHoklch(52.33% 0.139 136.5)
XYZxyz(9.4314, 15.3490, 3.6937)
Luminance0.1535 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B1E #591E7B
analogous
#6E7B1E #407B1E #1E7B2B
triadic
#407B1E #1E407B #7B1E40
tetradic
#407B1E #1E6E7B #591E7B #7B2B1E
square
#407B1E #1E6E7B #591E7B #7B2B1E
split-complementary
#407B1E #2B1E7B #7B1E6E
monochromatic
#0D1906 #264A12 #407B1E #5AAC2A #77D142

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407B1E#FFFFFF#000000##FFFFFF
##407B1E1.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)
#7F700D
Deuteranopia (green-blind)
#786B27
Tritanopia (blue-blind)
#3D7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b1e;
/* rgb */ color: rgb(64, 123, 30);
/* oklch */ color: oklch(52.3% 0.139 136.5);
Tailwind
colors: {
  custom: {
    50: '#7ba261',
    500: '#407b1e',
    950: '#000000',
  },
}
SCSS
$custom: #407b1e;
$custom-light: #7ba261;
$custom-dark: #000000;
JSON
{
  "hex": "#407b1e",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 30
  },
  "hsl": {
    "h": 98.065,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.52333,
    "c": 0.13866,
    "h": 136.5
  },
  "luminance": 0.1535
}

Semantic roles & 50–950 ramp

primary
#407B1E
secondary
#8846AE
accent
#44E4A9
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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