#407717#407717

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

Color values

HEX#407717
RGBrgb(64, 119, 23)
HSLhsl(94, 68%, 28%)
HSVhsv(94, 81%, 47%)
CMYKcmyk(46.2%, 0%, 80.7%, 53.3%)
CIE-LABlab(44.72, -34.98, 43.55)
CIE-LCHlch(44.72, 55.86, 128.78°)
OKLaboklab(51.18% -0.0978 0.0968)
OKLCHoklch(51.18% 0.138 135.3)
XYZxyz(8.8656, 14.3450, 3.1122)
Luminance0.1435 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407717 #4E1777
analogous
#707717 #407717 #17771E
triadic
#407717 #174077 #771740
tetradic
#407717 #177077 #4E1777 #771E17
square
#407717 #177077 #4E1777 #771E17
split-complementary
#407717 #1E1777 #771770
monochromatic
#0E1A05 #24440D #407717 #5CAA21 #78D731

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407717#FFFFFF#000000##FFFFFF
##4077171.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)
#7C6D00
Deuteranopia (green-blind)
#746822
Tritanopia (blue-blind)
#3E7265
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #407717;
/* rgb */ color: rgb(64, 119, 23);
/* oklch */ color: oklch(51.2% 0.138 135.3);
Tailwind
colors: {
  custom: {
    50: '#7b9f5d',
    500: '#407717',
    950: '#000000',
  },
}
SCSS
$custom: #407717;
$custom-light: #7b9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#407717",
  "rgb": {
    "r": 64,
    "g": 119,
    "b": 23
  },
  "hsl": {
    "h": 94.375,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.51182,
    "c": 0.13759,
    "h": 135.3
  },
  "luminance": 0.14346
}

Semantic roles & 50–950 ramp

primary
#407717
secondary
#7D3EAC
accent
#3DEAA1
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407717

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

Preview Lab → · Contrast checker → · Palette generator →

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