#407816#407816

#407816 is a mid, vivid yellow-green. Relative luminance 0.146; OKLCH L 51.5% C 0.139 H 135.3°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#407816
RGBrgb(64, 120, 22)
HSLhsl(94, 69%, 28%)
HSVhsv(94, 82%, 47%)
CMYKcmyk(46.7%, 0%, 81.7%, 52.9%)
CIE-LABlab(45.05, -35.47, 44.19)
CIE-LCHlch(45.05, 56.67, 128.75°)
OKLaboklab(51.45% -0.0992 0.098)
OKLCHoklch(51.45% 0.139 135.3)
XYZxyz(8.9754, 14.5803, 3.1002)
Luminance0.1458 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407816 #4E1678
analogous
#717816 #407816 #16781D
triadic
#407816 #164078 #781640
tetradic
#407816 #167178 #4E1678 #781D16
square
#407816 #167178 #4E1678 #781D16
split-complementary
#407816 #1D1678 #781671
monochromatic
#0E1A05 #24440D #407816 #5CAC1F #78D92F

Accessibility & contrast

On white

5.36
#407816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#407816 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407816
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407816#FFFFFF#000000##FFFFFF
##4078161.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6D00
Deuteranopia (green-blind)
#756921
Tritanopia (blue-blind)
#3E7366
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #407816;
/* rgb */ color: rgb(64, 120, 22);
/* oklch */ color: oklch(51.5% 0.139 135.3);
Tailwind
colors: {
  custom: {
    50: '#7b9f5c',
    500: '#407816',
    950: '#000000',
  },
}
SCSS
$custom: #407816;
$custom-light: #7b9f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#407816",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 94.286,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.51451,
    "c": 0.13942,
    "h": 135.3
  },
  "luminance": 0.14581
}

Semantic roles & 50–950 ramp

primary
#407816
secondary
#7D3CAD
accent
#3CECA0
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407816

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

Preview Lab → · Contrast checker → · Palette generator →

#407816 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva