#417D1B#417D1B

#417D1B is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 52.9% C 0.143 H 136.2°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#417D1B
RGBrgb(65, 125, 27)
HSLhsl(97, 64%, 30%)
HSVhsv(97, 78%, 49%)
CMYKcmyk(48%, 0%, 78.4%, 51%)
CIE-LABlab(46.80, -36.95, 44.16)
CIE-LCHlch(46.80, 57.58, 129.92°)
OKLaboklab(52.91% -0.1029 0.0987)
OKLCHoklch(52.91% 0.143 136.2)
XYZxyz(9.7112, 15.8696, 3.5881)
Luminance0.1587 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417D1B #571B7D
analogous
#727D1B #417D1B #1B7D26
triadic
#417D1B #1B417D #7D1B41
tetradic
#417D1B #1B727D #571B7D #7D261B
square
#417D1B #1B727D #571B7D #7D261B
split-complementary
#417D1B #261B7D #7D1B72
monochromatic
#0D1905 #274B10 #417D1B #5BAF26 #78D53D

Accessibility & contrast

On white

5.03
#417D1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#417D1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #417D1B
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##417D1B#FFFFFF#000000##FFFFFF
##417D1B1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827205
Deuteranopia (green-blind)
#7A6D25
Tritanopia (blue-blind)
#3E786A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #417d1b;
/* rgb */ color: rgb(65, 125, 27);
/* oklch */ color: oklch(52.9% 0.143 136.2);
Tailwind
colors: {
  custom: {
    50: '#7ca35f',
    500: '#417d1b',
    950: '#000000',
  },
}
SCSS
$custom: #417d1b;
$custom-light: #7ca35f;
$custom-dark: #000000;
JSON
{
  "hex": "#417d1b",
  "rgb": {
    "r": 65,
    "g": 125,
    "b": 27
  },
  "hsl": {
    "h": 96.735,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52909,
    "c": 0.14258,
    "h": 136.2
  },
  "luminance": 0.1587
}

Semantic roles & 50–950 ramp

primary
#417D1B
secondary
#8643B1
accent
#40E7A7
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #417D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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