#407A16#407A16

#407A16 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.0% C 0.142 H 135.6°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#407A16
RGBrgb(64, 122, 22)
HSLhsl(95, 69%, 28%)
HSVhsv(95, 82%, 48%)
CMYKcmyk(47.5%, 0%, 82%, 52.2%)
CIE-LABlab(45.73, -36.33, 44.82)
CIE-LCHlch(45.73, 57.70, 129.03°)
OKLaboklab(52% -0.1015 0.0993)
OKLCHoklch(52% 0.142 135.6)
XYZxyz(9.2185, 15.0664, 3.1813)
Luminance0.1507 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A16 #50167A
analogous
#727A16 #407A16 #167A1E
triadic
#407A16 #16407A #7A1640
tetradic
#407A16 #16727A #50167A #7A1E16
square
#407A16 #16727A #50167A #7A1E16
split-complementary
#407A16 #1E167A #7A1672
monochromatic
#0E1A05 #25460D #407A16 #5BAE1F #78DA31

Accessibility & contrast

On white

5.23
#407A16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#407A16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A16
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A16#FFFFFF#000000##FFFFFF
##407A161.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#776B21
Tritanopia (blue-blind)
#3E7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407a16;
/* rgb */ color: rgb(64, 122, 22);
/* oklch */ color: oklch(52.0% 0.142 135.6);
Tailwind
colors: {
  custom: {
    50: '#7ba15d',
    500: '#407a16',
    950: '#000000',
  },
}
SCSS
$custom: #407a16;
$custom-light: #7ba15d;
$custom-dark: #000000;
JSON
{
  "hex": "#407a16",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 22
  },
  "hsl": {
    "h": 94.8,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.52002,
    "c": 0.14199,
    "h": 135.6
  },
  "luminance": 0.15067
}

Semantic roles & 50–950 ramp

primary
#407A16
secondary
#7F3DAF
accent
#3CECA2
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0F04
muted
#7C7E79

Preview Lab

Preview with #407A16

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

Preview Lab → · Contrast checker → · Palette generator →

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