#407C16#407C16

#407C16 is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.6% C 0.145 H 135.9°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#407C16
RGBrgb(64, 124, 22)
HSLhsl(95, 70%, 29%)
HSVhsv(95, 82%, 49%)
CMYKcmyk(48.4%, 0%, 82.3%, 51.4%)
CIE-LABlab(46.40, -37.18, 45.45)
CIE-LCHlch(46.40, 58.72, 129.28°)
OKLaboklab(52.55% -0.1037 0.1006)
OKLCHoklch(52.55% 0.145 135.9)
XYZxyz(9.4666, 15.5626, 3.2640)
Luminance0.1556 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C16 #52167C
analogous
#737C16 #407C16 #167C1F
triadic
#407C16 #16407C #7C1640
tetradic
#407C16 #16737C #52167C #7C1F16
square
#407C16 #16737C #52167C #7C1F16
split-complementary
#407C16 #1F167C #7C1673
monochromatic
#0D1A05 #25480D #407C16 #5BB01F #77DB32

Accessibility & contrast

On white

5.11
#407C16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#407C16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C16
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C16#FFFFFF#000000##FFFFFF
##407C161.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#796C22
Tritanopia (blue-blind)
#3E7769
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c16;
/* rgb */ color: rgb(64, 124, 22);
/* oklch */ color: oklch(52.6% 0.145 135.9);
Tailwind
colors: {
  custom: {
    50: '#7ba25d',
    500: '#407c16',
    950: '#000000',
  },
}
SCSS
$custom: #407c16;
$custom-light: #7ba25d;
$custom-dark: #000000;
JSON
{
  "hex": "#407c16",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 22
  },
  "hsl": {
    "h": 95.294,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52553,
    "c": 0.14453,
    "h": 135.9
  },
  "luminance": 0.15563
}

Semantic roles & 50–950 ramp

primary
#407C16
secondary
#813DB1
accent
#3BEDA4
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407C16

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

Preview Lab → · Contrast checker → · Palette generator →

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