#407F16#407F16

#407F16 is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.4% C 0.148 H 136.2°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#407F16
RGBrgb(64, 127, 22)
HSLhsl(96, 70%, 29%)
HSVhsv(96, 83%, 50%)
CMYKcmyk(49.6%, 0%, 82.7%, 50.2%)
CIE-LABlab(47.40, -38.43, 46.38)
CIE-LCHlch(47.40, 60.24, 129.64°)
OKLaboklab(53.38% -0.1071 0.1026)
OKLCHoklch(53.38% 0.148 136.2)
XYZxyz(9.8483, 16.3260, 3.3912)
Luminance0.1633 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F16 #55167F
analogous
#757F16 #407F16 #167F21
triadic
#407F16 #16407F #7F1640
tetradic
#407F16 #16757F #55167F #7F2116
square
#407F16 #16757F #55167F #7F2116
split-complementary
#407F16 #21167F #7F1675
monochromatic
#0D1A05 #264B0D #407F16 #5AB31F #77DC34

Accessibility & contrast

On white

4.92
#407F16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#407F16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F16
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F16#FFFFFF#000000##FFFFFF
##407F161.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7B6F22
Tritanopia (blue-blind)
#3D7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407f16;
/* rgb */ color: rgb(64, 127, 22);
/* oklch */ color: oklch(53.4% 0.148 136.2);
Tailwind
colors: {
  custom: {
    50: '#7ca55d',
    500: '#407f16',
    950: '#000000',
  },
}
SCSS
$custom: #407f16;
$custom-light: #7ca55d;
$custom-dark: #000000;
JSON
{
  "hex": "#407f16",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 22
  },
  "hsl": {
    "h": 96,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.53378,
    "c": 0.14832,
    "h": 136.2
  },
  "luminance": 0.16327
}

Semantic roles & 50–950 ramp

primary
#407F16
secondary
#843DB4
accent
#3BEDA6
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407F16

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

Preview Lab → · Contrast checker → · Palette generator →

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