#417A1B#417A1B

#417A1B is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.1% C 0.139 H 135.8°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#417A1B
RGBrgb(65, 122, 27)
HSLhsl(96, 64%, 29%)
HSVhsv(96, 78%, 48%)
CMYKcmyk(46.7%, 0%, 77.9%, 52.2%)
CIE-LABlab(45.80, -35.67, 43.18)
CIE-LCHlch(45.80, 56.01, 129.56°)
OKLaboklab(52.09% -0.0994 0.0967)
OKLCHoklch(52.09% 0.139 135.8)
XYZxyz(9.3371, 15.1214, 3.4634)
Luminance0.1512 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417A1B #541B7A
analogous
#717A1B #417A1B #1B7A25
triadic
#417A1B #1B417A #7A1B41
tetradic
#417A1B #1B717A #541B7A #7A251B
square
#417A1B #1B717A #541B7A #7A251B
split-complementary
#417A1B #251B7A #7A1B71
monochromatic
#0D1906 #264810 #417A1B #5CAC26 #78D43C

Accessibility & contrast

On white

5.22
#417A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#417A1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #417A1B
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##417A1B#FFFFFF#000000##FFFFFF
##417A1B1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F06
Deuteranopia (green-blind)
#776B25
Tritanopia (blue-blind)
#3F7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #417a1b;
/* rgb */ color: rgb(65, 122, 27);
/* oklch */ color: oklch(52.1% 0.139 135.8);
Tailwind
colors: {
  custom: {
    50: '#7ba15f',
    500: '#417a1b',
    950: '#000000',
  },
}
SCSS
$custom: #417a1b;
$custom-light: #7ba15f;
$custom-dark: #000000;
JSON
{
  "hex": "#417a1b",
  "rgb": {
    "r": 65,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 96,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52086,
    "c": 0.13867,
    "h": 135.8
  },
  "luminance": 0.15122
}

Semantic roles & 50–950 ramp

primary
#417A1B
secondary
#8343AE
accent
#41E7A4
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #417A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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