#417D21#417D21

#417D21 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.0% C 0.139 H 136.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#417D21
RGBrgb(65, 125, 33)
HSLhsl(99, 58%, 31%)
HSVhsv(99, 74%, 49%)
CMYKcmyk(48%, 0%, 73.6%, 51%)
CIE-LABlab(46.84, -36.52, 41.91)
CIE-LCHlch(46.84, 55.59, 131.06°)
OKLaboklab(52.96% -0.1013 0.0949)
OKLCHoklch(52.96% 0.139 136.9)
XYZxyz(9.7878, 15.9002, 3.9918)
Luminance0.1590 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417D21 #5D217D
analogous
#6F7D21 #417D21 #217D2F
triadic
#417D21 #21417D #7D2141
tetradic
#417D21 #216F7D #5D217D #7D2F21
square
#417D21 #216F7D #5D217D #7D2F21
split-complementary
#417D21 #2F217D #7D216F
monochromatic
#0F1C07 #284D14 #417D21 #5AAD2E #78CF49

Accessibility & contrast

On white

5.02
#417D21 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#417D21 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #417D21
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##417D21#FFFFFF#000000##FFFFFF
##417D211.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817212
Deuteranopia (green-blind)
#796D2A
Tritanopia (blue-blind)
#3E786B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #417d21;
/* rgb */ color: rgb(65, 125, 33);
/* oklch */ color: oklch(53.0% 0.139 136.9);
Tailwind
colors: {
  custom: {
    50: '#7ba362',
    500: '#417d21',
    950: '#000000',
  },
}
SCSS
$custom: #417d21;
$custom-light: #7ba362;
$custom-dark: #000000;
JSON
{
  "hex": "#417d21",
  "rgb": {
    "r": 65,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 99.13,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52955,
    "c": 0.13879,
    "h": 136.9
  },
  "luminance": 0.15901
}

Semantic roles & 50–950 ramp

primary
#417D21
secondary
#8C4AB0
accent
#46E1AB
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #417D21

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

Preview Lab → · Contrast checker → · Palette generator →

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