#417B1F#417B1F

#417B1F is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.4% C 0.137 H 136.4°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#417B1F
RGBrgb(65, 123, 31)
HSLhsl(98, 60%, 30%)
HSVhsv(98, 75%, 48%)
CMYKcmyk(47.2%, 0%, 74.8%, 51.8%)
CIE-LABlab(46.16, -35.81, 42.02)
CIE-LCHlch(46.16, 55.21, 130.44°)
OKLaboklab(52.39% -0.0995 0.0948)
OKLCHoklch(52.39% 0.137 136.4)
XYZxyz(9.5100, 15.3881, 3.7651)
Luminance0.1539 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417B1F #591F7B
analogous
#6F7B1F #417B1F #1F7B2B
triadic
#417B1F #1F417B #7B1F41
tetradic
#417B1F #1F6F7B #591F7B #7B2B1F
square
#417B1F #1F6F7B #591F7B #7B2B1F
split-complementary
#417B1F #2B1F7B #7B1F6F
monochromatic
#0D1906 #274A13 #417B1F #5BAC2B #78D044

Accessibility & contrast

On white

5.15
#417B1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#417B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #417B1F
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##417B1F#FFFFFF#000000##FFFFFF
##417B1F1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#786C28
Tritanopia (blue-blind)
#3E7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #417b1f;
/* rgb */ color: rgb(65, 123, 31);
/* oklch */ color: oklch(52.4% 0.137 136.4);
Tailwind
colors: {
  custom: {
    50: '#7ba261',
    500: '#417b1f',
    950: '#000000',
  },
}
SCSS
$custom: #417b1f;
$custom-light: #7ba261;
$custom-dark: #000000;
JSON
{
  "hex": "#417b1f",
  "rgb": {
    "r": 65,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 97.826,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52391,
    "c": 0.13747,
    "h": 136.4
  },
  "luminance": 0.15389
}

Semantic roles & 50–950 ramp

primary
#417B1F
secondary
#8848AE
accent
#45E3A9
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #417B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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