#417D12#417D12

#417D12 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.9% C 0.147 H 135.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#417D12
RGBrgb(65, 125, 18)
HSLhsl(94, 75%, 28%)
HSVhsv(94, 86%, 49%)
CMYKcmyk(48%, 0%, 85.6%, 51%)
CIE-LABlab(46.76, -37.47, 46.99)
CIE-LCHlch(46.76, 60.10, 128.57°)
OKLaboklab(52.86% -0.1048 0.1032)
OKLCHoklch(52.86% 0.147 135.4)
XYZxyz(9.6225, 15.8341, 3.1214)
Luminance0.1583 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417D12 #4E127D
analogous
#767D12 #417D12 #127D19
triadic
#417D12 #12417D #7D1241
tetradic
#417D12 #12767D #4E127D #7D1912
square
#417D12 #12767D #4E127D #7D1912
split-complementary
#417D12 #19127D #7D1276
monochromatic
#0E1B04 #25480A #417D12 #5DB21A #7AE029

Accessibility & contrast

On white

5.04
#417D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #417D12
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##417D12#FFFFFF#000000##FFFFFF
##417D121.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7A6D1F
Tritanopia (blue-blind)
#3F786A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #417d12;
/* rgb */ color: rgb(65, 125, 18);
/* oklch */ color: oklch(52.9% 0.147 135.4);
Tailwind
colors: {
  custom: {
    50: '#7ca35b',
    500: '#417d12',
    950: '#000000',
  },
}
SCSS
$custom: #417d12;
$custom-light: #7ca35b;
$custom-dark: #000000;
JSON
{
  "hex": "#417d12",
  "rgb": {
    "r": 65,
    "g": 125,
    "b": 18
  },
  "hsl": {
    "h": 93.645,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52856,
    "c": 0.14711,
    "h": 135.4
  },
  "luminance": 0.15835
}

Semantic roles & 50–950 ramp

primary
#417D12
secondary
#7D38B3
accent
#36F19F
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #417D12

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

Preview Lab → · Contrast checker → · Palette generator →

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