#417F12#417F12

#417F12 is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.4% C 0.150 H 135.7°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#417F12
RGBrgb(65, 127, 18)
HSLhsl(94, 75%, 28%)
HSVhsv(94, 86%, 50%)
CMYKcmyk(48.8%, 0%, 85.8%, 50.2%)
CIE-LABlab(47.42, -38.30, 47.59)
CIE-LCHlch(47.42, 61.09, 128.83°)
OKLaboklab(53.41% -0.1071 0.1045)
OKLCHoklch(53.41% 0.15 135.7)
XYZxyz(9.8783, 16.3456, 3.2066)
Luminance0.1635 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#417F12 #50127F
analogous
#777F12 #417F12 #127F19
triadic
#417F12 #12417F #7F1241
tetradic
#417F12 #12777F #50127F #7F1912
square
#417F12 #12777F #50127F #7F1912
split-complementary
#417F12 #19127F #7F1277
monochromatic
#0E1B04 #26490A #417F12 #5CB51A #79E12B

Accessibility & contrast

On white

4.92
#417F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#417F12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #417F12
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##417F12#FFFFFF#000000##FFFFFF
##417F121.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7C6F20
Tritanopia (blue-blind)
#3F7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #417f12;
/* rgb */ color: rgb(65, 127, 18);
/* oklch */ color: oklch(53.4% 0.150 135.7);
Tailwind
colors: {
  custom: {
    50: '#7ca55c',
    500: '#417f12',
    950: '#000000',
  },
}
SCSS
$custom: #417f12;
$custom-light: #7ca55c;
$custom-dark: #000000;
JSON
{
  "hex": "#417f12",
  "rgb": {
    "r": 65,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 94.128,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.53405,
    "c": 0.1496,
    "h": 135.7
  },
  "luminance": 0.16346
}

Semantic roles & 50–950 ramp

primary
#417F12
secondary
#7F38B5
accent
#36F2A1
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #417F12

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

Preview Lab → · Contrast checker → · Palette generator →

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