#407D16#407D16

#407D16 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.8% C 0.146 H 136.0°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#407D16
RGBrgb(64, 125, 22)
HSLhsl(96, 70%, 29%)
HSVhsv(96, 82%, 49%)
CMYKcmyk(48.8%, 0%, 82.4%, 51%)
CIE-LABlab(46.73, -37.60, 45.76)
CIE-LCHlch(46.73, 59.23, 129.41°)
OKLaboklab(52.83% -0.1049 0.1013)
OKLCHoklch(52.83% 0.146 136)
XYZxyz(9.5925, 15.8145, 3.3059)
Luminance0.1582 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D16 #53167D
analogous
#747D16 #407D16 #167D20
triadic
#407D16 #16407D #7D1640
tetradic
#407D16 #16747D #53167D #7D2016
square
#407D16 #16747D #53167D #7D2016
split-complementary
#407D16 #20167D #7D1674
monochromatic
#0D1A05 #25490D #407D16 #5BB11F #77DB32

Accessibility & contrast

On white

5.04
#407D16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#407D16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D16
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D16#FFFFFF#000000##FFFFFF
##407D161.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7A6D22
Tritanopia (blue-blind)
#3D786A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d16;
/* rgb */ color: rgb(64, 125, 22);
/* oklch */ color: oklch(52.8% 0.146 136.0);
Tailwind
colors: {
  custom: {
    50: '#7ba35d',
    500: '#407d16',
    950: '#000000',
  },
}
SCSS
$custom: #407d16;
$custom-light: #7ba35d;
$custom-dark: #000000;
JSON
{
  "hex": "#407d16",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 22
  },
  "hsl": {
    "h": 95.534,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52828,
    "c": 0.14579,
    "h": 136
  },
  "luminance": 0.15815
}

Semantic roles & 50–950 ramp

primary
#407D16
secondary
#823DB2
accent
#3BEDA4
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407D16

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

Preview Lab → · Contrast checker → · Palette generator →

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