#417B1B#417B1B

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

Color values

HEX#417B1B
RGBrgb(65, 123, 27)
HSLhsl(96, 64%, 29%)
HSVhsv(96, 78%, 48%)
CMYKcmyk(47.2%, 0%, 78%, 51.8%)
CIE-LABlab(46.13, -36.10, 43.51)
CIE-LCHlch(46.13, 56.54, 129.68°)
OKLaboklab(52.36% -0.1006 0.0973)
OKLCHoklch(52.36% 0.14 135.9)
XYZxyz(9.4605, 15.3683, 3.5046)
Luminance0.1537 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417B1B #551B7B
analogous
#717B1B #417B1B #1B7B25
triadic
#417B1B #1B417B #7B1B41
tetradic
#417B1B #1B717B #551B7B #7B251B
square
#417B1B #1B717B #551B7B #7B251B
split-complementary
#417B1B #251B7B #7B1B71
monochromatic
#0D1906 #264910 #417B1B #5CAD26 #78D43C

Accessibility & contrast

On white

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

On black

4.07
#417B1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##417B1B#FFFFFF#000000##FFFFFF
##417B1B1.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807006
Deuteranopia (green-blind)
#786C25
Tritanopia (blue-blind)
#3F7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #417b1b;
/* rgb */ color: rgb(65, 123, 27);
/* oklch */ color: oklch(52.4% 0.140 135.9);
Tailwind
colors: {
  custom: {
    50: '#7ba25f',
    500: '#417b1b',
    950: '#000000',
  },
}
SCSS
$custom: #417b1b;
$custom-light: #7ba25f;
$custom-dark: #000000;
JSON
{
  "hex": "#417b1b",
  "rgb": {
    "r": 65,
    "g": 123,
    "b": 27
  },
  "hsl": {
    "h": 96.25,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5236,
    "c": 0.13998,
    "h": 135.9
  },
  "luminance": 0.15369
}

Semantic roles & 50–950 ramp

primary
#417B1B
secondary
#8443AF
accent
#41E7A5
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #417B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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