#407D14#407D14

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

Color values

HEX#407D14
RGBrgb(64, 125, 20)
HSLhsl(95, 72%, 28%)
HSVhsv(95, 84%, 49%)
CMYKcmyk(48.8%, 0%, 84%, 51%)
CIE-LABlab(46.72, -37.70, 46.37)
CIE-LCHlch(46.72, 59.76, 129.12°)
OKLaboklab(52.82% -0.1053 0.1022)
OKLCHoklch(52.82% 0.147 135.8)
XYZxyz(9.5740, 15.8071, 3.2083)
Luminance0.1581 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D14 #51147D
analogous
#747D14 #407D14 #147D1C
triadic
#407D14 #14407D #7D1440
tetradic
#407D14 #14747D #51147D #7D1C14
square
#407D14 #14747D #51147D #7D1C14
split-complementary
#407D14 #1C147D #7D1474
monochromatic
#0E1A04 #25480C #407D14 #5BB21C #77DE2E

Accessibility & contrast

On white

5.05
#407D14 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407D14
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D14#FFFFFF#000000##FFFFFF
##407D141.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #407d14;
/* rgb */ color: rgb(64, 125, 20);
/* oklch */ color: oklch(52.8% 0.147 135.8);
Tailwind
colors: {
  custom: {
    50: '#7ba35c',
    500: '#407d14',
    950: '#000000',
  },
}
SCSS
$custom: #407d14;
$custom-light: #7ba35c;
$custom-dark: #000000;
JSON
{
  "hex": "#407d14",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 20
  },
  "hsl": {
    "h": 94.857,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52817,
    "c": 0.14675,
    "h": 135.8
  },
  "luminance": 0.15808
}

Semantic roles & 50–950 ramp

primary
#407D14
secondary
#803AB2
accent
#39EFA3
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #407D14

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

Preview Lab → · Contrast checker → · Palette generator →

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