#407917#407917

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

Color values

HEX#407917
RGBrgb(64, 121, 23)
HSLhsl(95, 68%, 28%)
HSVhsv(95, 81%, 47%)
CMYKcmyk(47.1%, 0%, 81%, 52.5%)
CIE-LABlab(45.40, -35.84, 44.18)
CIE-LCHlch(45.40, 56.89, 129.05°)
OKLaboklab(51.73% -0.1001 0.0981)
OKLCHoklch(51.73% 0.14 135.6)
XYZxyz(9.1062, 14.8260, 3.1923)
Luminance0.1483 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407917 #501779
analogous
#717917 #407917 #17791F
triadic
#407917 #174079 #791740
tetradic
#407917 #177179 #501779 #791F17
square
#407917 #177179 #501779 #791F17
split-complementary
#407917 #1F1779 #791771
monochromatic
#0E1A05 #25460D #407917 #5BAC21 #78D832

Accessibility & contrast

On white

5.30
#407917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #407917
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407917#FFFFFF#000000##FFFFFF
##4079171.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #407917;
/* rgb */ color: rgb(64, 121, 23);
/* oklch */ color: oklch(51.7% 0.140 135.6);
Tailwind
colors: {
  custom: {
    50: '#7ba05d',
    500: '#407917',
    950: '#000000',
  },
}
SCSS
$custom: #407917;
$custom-light: #7ba05d;
$custom-dark: #000000;
JSON
{
  "hex": "#407917",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 94.898,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51733,
    "c": 0.14018,
    "h": 135.6
  },
  "luminance": 0.14827
}

Semantic roles & 50–950 ramp

primary
#407917
secondary
#7F3EAE
accent
#3DEBA2
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #407917

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

Preview Lab → · Contrast checker → · Palette generator →

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