#407B1A#407B1A

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

Color values

HEX#407B1A
RGBrgb(64, 123, 26)
HSLhsl(96, 65%, 29%)
HSVhsv(96, 79%, 48%)
CMYKcmyk(48%, 0%, 78.9%, 51.8%)
CIE-LABlab(46.08, -36.51, 43.80)
CIE-LCHlch(46.08, 57.02, 129.81°)
OKLaboklab(52.3% -0.1017 0.0978)
OKLCHoklch(52.3% 0.141 136.1)
XYZxyz(9.3835, 15.3299, 3.4416)
Luminance0.1533 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B1A #551A7B
analogous
#717B1A #407B1A #1A7B25
triadic
#407B1A #1A407B #7B1A40
tetradic
#407B1A #1A717B #551A7B #7B251A
square
#407B1A #1A717B #551A7B #7B251A
split-complementary
#407B1A #251A7B #7B1A71
monochromatic
#0D1905 #26480F #407B1A #5AAE25 #77D53A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407B1A#FFFFFF#000000##FFFFFF
##407B1A1.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)
#807004
Deuteranopia (green-blind)
#786B24
Tritanopia (blue-blind)
#3D7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b1a;
/* rgb */ color: rgb(64, 123, 26);
/* oklch */ color: oklch(52.3% 0.141 136.1);
Tailwind
colors: {
  custom: {
    50: '#7ba25f',
    500: '#407b1a',
    950: '#000000',
  },
}
SCSS
$custom: #407b1a;
$custom-light: #7ba25f;
$custom-dark: #000000;
JSON
{
  "hex": "#407b1a",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 26
  },
  "hsl": {
    "h": 96.495,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52303,
    "c": 0.14109,
    "h": 136.1
  },
  "luminance": 0.1533
}

Semantic roles & 50–950 ramp

primary
#407B1A
secondary
#8442AF
accent
#40E8A6
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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