#407718#407718

#407718 is a mid, vivid yellow-green. Relative luminance 0.143; OKLCH L 51.2% C 0.137 H 135.4°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#407718
RGBrgb(64, 119, 24)
HSLhsl(95, 66%, 28%)
HSVhsv(95, 80%, 47%)
CMYKcmyk(46.2%, 0%, 79.8%, 53.3%)
CIE-LABlab(44.73, -34.92, 43.21)
CIE-LCHlch(44.73, 55.55, 128.95°)
OKLaboklab(51.19% -0.0976 0.0962)
OKLCHoklch(51.19% 0.137 135.4)
XYZxyz(8.8758, 14.3491, 3.1659)
Luminance0.1435 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407718 #4F1877
analogous
#6F7718 #407718 #18771F
triadic
#407718 #184077 #771840
tetradic
#407718 #186F77 #4F1877 #771F18
square
#407718 #186F77 #4F1877 #771F18
split-complementary
#407718 #1F1877 #77186F
monochromatic
#0E1905 #25440E #407718 #5BAA22 #78D633

Accessibility & contrast

On white

5.43
#407718 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#407718 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407718
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407718#FFFFFF#000000##FFFFFF
##4077181.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D02
Deuteranopia (green-blind)
#746822
Tritanopia (blue-blind)
#3E7265
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #407718;
/* rgb */ color: rgb(64, 119, 24);
/* oklch */ color: oklch(51.2% 0.137 135.4);
Tailwind
colors: {
  custom: {
    50: '#7a9f5d',
    500: '#407718',
    950: '#000000',
  },
}
SCSS
$custom: #407718;
$custom-light: #7a9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#407718",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 24
  },
  "hsl": {
    "h": 94.737,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51188,
    "c": 0.13704,
    "h": 135.4
  },
  "luminance": 0.1435
}

Semantic roles & 50–950 ramp

primary
#407718
secondary
#7E3FAC
accent
#3EE9A1
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E05
muted
#7C7E79

Preview Lab

Preview with #407718

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

Preview Lab → · Contrast checker → · Palette generator →

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