#407918#407918

#407918 is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 51.7% C 0.140 H 135.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#407918
RGBrgb(64, 121, 24)
HSLhsl(95, 67%, 28%)
HSVhsv(95, 80%, 47%)
CMYKcmyk(47.1%, 0%, 80.2%, 52.5%)
CIE-LABlab(45.40, -35.78, 43.85)
CIE-LCHlch(45.40, 56.60, 129.22°)
OKLaboklab(51.74% -0.0999 0.0976)
OKLCHoklch(51.74% 0.14 135.7)
XYZxyz(9.1164, 14.8301, 3.2461)
Luminance0.1483 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407918 #511879
analogous
#707918 #407918 #187920
triadic
#407918 #184079 #791840
tetradic
#407918 #187079 #511879 #792018
square
#407918 #187079 #511879 #792018
split-complementary
#407918 #201879 #791870
monochromatic
#0E1A05 #25460E #407918 #5BAC22 #77D735

Accessibility & contrast

On white

5.29
#407918 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#407918 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407918
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407918#FFFFFF#000000##FFFFFF
##4079181.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6E01
Deuteranopia (green-blind)
#766A23
Tritanopia (blue-blind)
#3E7467
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #407918;
/* rgb */ color: rgb(64, 121, 24);
/* oklch */ color: oklch(51.7% 0.140 135.7);
Tailwind
colors: {
  custom: {
    50: '#7ba05d',
    500: '#407918',
    950: '#000000',
  },
}
SCSS
$custom: #407918;
$custom-light: #7ba05d;
$custom-dark: #000000;
JSON
{
  "hex": "#407918",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 95.258,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51739,
    "c": 0.13963,
    "h": 135.7
  },
  "luminance": 0.14831
}

Semantic roles & 50–950 ramp

primary
#407918
secondary
#803FAE
accent
#3EEAA3
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #407918

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

Preview Lab → · Contrast checker → · Palette generator →

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