#417D1F#417D1F

#417D1F is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 52.9% C 0.140 H 136.6°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#417D1F
RGBrgb(65, 125, 31)
HSLhsl(98, 60%, 31%)
HSVhsv(98, 75%, 49%)
CMYKcmyk(48%, 0%, 75.2%, 51%)
CIE-LABlab(46.83, -36.67, 42.69)
CIE-LCHlch(46.83, 56.28, 130.66°)
OKLaboklab(52.94% -0.1018 0.0962)
OKLCHoklch(52.94% 0.14 136.6)
XYZxyz(9.7606, 15.8893, 3.8487)
Luminance0.1589 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417D1F #5B1F7D
analogous
#707D1F #417D1F #1F7D2C
triadic
#417D1F #1F417D #7D1F41
tetradic
#417D1F #1F707D #5B1F7D #7D2C1F
square
#417D1F #1F707D #5B1F7D #7D2C1F
split-complementary
#417D1F #2C1F7D #7D1F70
monochromatic
#0E1B07 #274C13 #417D1F #5AAE2B #78D145

Accessibility & contrast

On white

5.03
#417D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#417D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #417D1F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##417D1F#FFFFFF#000000##FFFFFF
##417D1F1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81720E
Deuteranopia (green-blind)
#796D28
Tritanopia (blue-blind)
#3E786B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #417d1f;
/* rgb */ color: rgb(65, 125, 31);
/* oklch */ color: oklch(52.9% 0.140 136.6);
Tailwind
colors: {
  custom: {
    50: '#7ca361',
    500: '#417d1f',
    950: '#000000',
  },
}
SCSS
$custom: #417d1f;
$custom-light: #7ca361;
$custom-dark: #000000;
JSON
{
  "hex": "#417d1f",
  "rgb": {
    "r": 65,
    "g": 125,
    "b": 31
  },
  "hsl": {
    "h": 98.298,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52939,
    "c": 0.14012,
    "h": 136.6
  },
  "luminance": 0.1589
}

Semantic roles & 50–950 ramp

primary
#417D1F
secondary
#8A48B0
accent
#44E3AA
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #417D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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