#417E1B#417E1B

#417E1B is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.2% C 0.144 H 136.3°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#417E1B
RGBrgb(65, 126, 27)
HSLhsl(97, 65%, 30%)
HSVhsv(97, 79%, 49%)
CMYKcmyk(48.4%, 0%, 78.6%, 50.6%)
CIE-LABlab(47.14, -37.38, 44.48)
CIE-LCHlch(47.14, 58.10, 130.04°)
OKLaboklab(53.18% -0.104 0.0994)
OKLCHoklch(53.18% 0.144 136.3)
XYZxyz(9.8384, 16.1240, 3.6305)
Luminance0.1613 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417E1B #581B7E
analogous
#727E1B #417E1B #1B7E27
triadic
#417E1B #1B417E #7E1B41
tetradic
#417E1B #1B727E #581B7E #7E271B
square
#417E1B #1B727E #581B7E #7E271B
split-complementary
#417E1B #271B7E #7E1B72
monochromatic
#0D1905 #274C10 #417E1B #5BB026 #78D63E

Accessibility & contrast

On white

4.97
#417E1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#417E1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #417E1B
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##417E1B#FFFFFF#000000##FFFFFF
##417E1B1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837304
Deuteranopia (green-blind)
#7B6E26
Tritanopia (blue-blind)
#3E796B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #417e1b;
/* rgb */ color: rgb(65, 126, 27);
/* oklch */ color: oklch(53.2% 0.144 136.3);
Tailwind
colors: {
  custom: {
    50: '#7ca45f',
    500: '#417e1b',
    950: '#000000',
  },
}
SCSS
$custom: #417e1b;
$custom-light: #7ca45f;
$custom-dark: #000000;
JSON
{
  "hex": "#417e1b",
  "rgb": {
    "r": 65,
    "g": 126,
    "b": 27
  },
  "hsl": {
    "h": 96.97,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.53183,
    "c": 0.14387,
    "h": 136.3
  },
  "luminance": 0.16125
}

Semantic roles & 50–950 ramp

primary
#417E1B
secondary
#8743B2
accent
#40E8A7
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #417E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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