#407A19#407A19

#407A19 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.0% C 0.140 H 135.9°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#407A19
RGBrgb(64, 122, 25)
HSLhsl(96, 66%, 29%)
HSVhsv(96, 80%, 48%)
CMYKcmyk(47.5%, 0%, 79.5%, 52.2%)
CIE-LABlab(45.74, -36.15, 43.83)
CIE-LCHlch(45.74, 56.81, 129.52°)
OKLaboklab(52.02% -0.1008 0.0977)
OKLCHoklch(52.02% 0.14 135.9)
XYZxyz(9.2491, 15.0787, 3.3426)
Luminance0.1508 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A19 #53197A
analogous
#717A19 #407A19 #197A23
triadic
#407A19 #19407A #7A1940
tetradic
#407A19 #19717A #53197A #7A2319
square
#407A19 #19717A #53197A #7A2319
split-complementary
#407A19 #23197A #7A1971
monochromatic
#0D1905 #25470F #407A19 #5BAD23 #77D637

Accessibility & contrast

On white

5.23
#407A19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#407A19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A19
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A19#FFFFFF#000000##FFFFFF
##407A191.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F02
Deuteranopia (green-blind)
#776B23
Tritanopia (blue-blind)
#3E7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407a19;
/* rgb */ color: rgb(64, 122, 25);
/* oklch */ color: oklch(52.0% 0.140 135.9);
Tailwind
colors: {
  custom: {
    50: '#7ba15e',
    500: '#407a19',
    950: '#000000',
  },
}
SCSS
$custom: #407a19;
$custom-light: #7ba15e;
$custom-dark: #000000;
JSON
{
  "hex": "#407a19",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 25
  },
  "hsl": {
    "h": 95.876,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52021,
    "c": 0.14037,
    "h": 135.9
  },
  "luminance": 0.15079
}

Semantic roles & 50–950 ramp

primary
#407A19
secondary
#8240AF
accent
#3FE9A5
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #407A19

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

Preview Lab → · Contrast checker → · Palette generator →

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