#417B1C#417B1C

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

Color values

HEX#417B1C
RGBrgb(65, 123, 28)
HSLhsl(97, 63%, 30%)
HSVhsv(97, 77%, 48%)
CMYKcmyk(47.2%, 0%, 77.2%, 51.8%)
CIE-LABlab(46.14, -36.03, 43.15)
CIE-LCHlch(46.14, 56.22, 129.87°)
OKLaboklab(52.37% -0.1003 0.0967)
OKLCHoklch(52.37% 0.139 136)
XYZxyz(9.4723, 15.3730, 3.5665)
Luminance0.1537 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417B1C #561C7B
analogous
#707B1C #417B1C #1C7B27
triadic
#417B1C #1C417B #7B1C41
tetradic
#417B1C #1C707B #561C7B #7B271C
square
#417B1C #1C707B #561C7B #7B271C
split-complementary
#417B1C #271C7B #7B1C70
monochromatic
#0D1906 #274911 #417B1C #5BAD27 #78D33E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##417B1C#FFFFFF#000000##FFFFFF
##417B1C1.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)
#807008
Deuteranopia (green-blind)
#786C26
Tritanopia (blue-blind)
#3F7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #417b1c;
/* rgb */ color: rgb(65, 123, 28);
/* oklch */ color: oklch(52.4% 0.139 136.0);
Tailwind
colors: {
  custom: {
    50: '#7ba260',
    500: '#417b1c',
    950: '#000000',
  },
}
SCSS
$custom: #417b1c;
$custom-light: #7ba260;
$custom-dark: #000000;
JSON
{
  "hex": "#417b1c",
  "rgb": {
    "r": 65,
    "g": 123,
    "b": 28
  },
  "hsl": {
    "h": 96.632,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52368,
    "c": 0.13937,
    "h": 136
  },
  "luminance": 0.15374
}

Semantic roles & 50–950 ramp

primary
#417B1C
secondary
#8544AF
accent
#42E6A6
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #417B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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