#407417#407417

#407417 is a mid, vivid yellow-green. Relative luminance 0.136; OKLCH L 50.4% C 0.134 H 134.8°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#407417
RGBrgb(64, 116, 23)
HSLhsl(94, 67%, 27%)
HSVhsv(94, 80%, 45%)
CMYKcmyk(44.8%, 0%, 80.2%, 54.5%)
CIE-LABlab(43.72, -33.67, 42.58)
CIE-LCHlch(43.72, 54.29, 128.34°)
OKLaboklab(50.36% -0.0943 0.0948)
OKLCHoklch(50.36% 0.134 134.8)
XYZxyz(8.5142, 13.6422, 2.9950)
Luminance0.1364 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407417 #4B1774
analogous
#6F7417 #407417 #17741C
triadic
#407417 #174074 #741740
tetradic
#407417 #176F74 #4B1774 #741C17
square
#407417 #176F74 #4B1774 #741C17
split-complementary
#407417 #1C1774 #74176F
monochromatic
#0E1A05 #24410D #407417 #5CA721 #79D630

Accessibility & contrast

On white

5.63
#407417 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#407417 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407417
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407417#FFFFFF#000000##FFFFFF
##4074171.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A01
Deuteranopia (green-blind)
#726621
Tritanopia (blue-blind)
#3F6F63
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #407417;
/* rgb */ color: rgb(64, 116, 23);
/* oklch */ color: oklch(50.4% 0.134 134.8);
Tailwind
colors: {
  custom: {
    50: '#7a9c5c',
    500: '#407417',
    950: '#000000',
  },
}
SCSS
$custom: #407417;
$custom-light: #7a9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#407417",
  "rgb": {
    "r": 64,
    "g": 116,
    "b": 23
  },
  "hsl": {
    "h": 93.548,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.50355,
    "c": 0.13367,
    "h": 134.8
  },
  "luminance": 0.13643
}

Semantic roles & 50–950 ramp

primary
#407417
secondary
#7A3DA9
accent
#3EEA9E
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0E04
muted
#7C7E79

Preview Lab

Preview with #407417

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

Preview Lab → · Contrast checker → · Palette generator →

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