#417A1F#417A1F

#417A1F is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.1% C 0.136 H 136.3°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#417A1F
RGBrgb(65, 122, 31)
HSLhsl(98, 59%, 30%)
HSVhsv(98, 75%, 48%)
CMYKcmyk(46.7%, 0%, 74.6%, 52.2%)
CIE-LABlab(45.83, -35.38, 41.68)
CIE-LCHlch(45.83, 54.67, 130.33°)
OKLaboklab(52.12% -0.0984 0.0941)
OKLCHoklch(52.12% 0.136 136.3)
XYZxyz(9.3866, 15.1412, 3.7240)
Luminance0.1514 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417A1F #581F7A
analogous
#6F7A1F #417A1F #1F7A2A
triadic
#417A1F #1F417A #7A1F41
tetradic
#417A1F #1F6F7A #581F7A #7A2A1F
square
#417A1F #1F6F7A #581F7A #7A2A1F
split-complementary
#417A1F #2A1F7A #7A1F6F
monochromatic
#0D1806 #274913 #417A1F #5BAB2B #78CF44

Accessibility & contrast

On white

5.21
#417A1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#417A1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #417A1F
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##417A1F#FFFFFF#000000##FFFFFF
##417A1F1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F0F
Deuteranopia (green-blind)
#776B28
Tritanopia (blue-blind)
#3F7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #417a1f;
/* rgb */ color: rgb(65, 122, 31);
/* oklch */ color: oklch(52.1% 0.136 136.3);
Tailwind
colors: {
  custom: {
    50: '#7ba161',
    500: '#417a1f',
    950: '#000000',
  },
}
SCSS
$custom: #417a1f;
$custom-light: #7ba161;
$custom-dark: #000000;
JSON
{
  "hex": "#417a1f",
  "rgb": {
    "r": 65,
    "g": 122,
    "b": 31
  },
  "hsl": {
    "h": 97.582,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.52116,
    "c": 0.13614,
    "h": 136.3
  },
  "luminance": 0.15142
}

Semantic roles & 50–950 ramp

primary
#417A1F
secondary
#8747AD
accent
#45E3A8
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #417A1F

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

Preview Lab → · Contrast checker → · Palette generator →

#417A1F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva