#407F17#407F17

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

Color values

HEX#407F17
RGBrgb(64, 127, 23)
HSLhsl(96, 69%, 29%)
HSVhsv(96, 82%, 50%)
CMYKcmyk(49.6%, 0%, 81.9%, 50.2%)
CIE-LABlab(47.40, -38.37, 46.07)
CIE-LCHlch(47.40, 59.96, 129.79°)
OKLaboklab(53.38% -0.1069 0.1021)
OKLCHoklch(53.38% 0.148 136.3)
XYZxyz(9.8581, 16.3299, 3.4430)
Luminance0.1633 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F17 #56177F
analogous
#747F17 #407F17 #177F22
triadic
#407F17 #17407F #7F1740
tetradic
#407F17 #17747F #56177F #7F2217
square
#407F17 #17747F #56177F #7F2217
split-complementary
#407F17 #22177F #7F1774
monochromatic
#0D1A05 #264B0E #407F17 #5AB320 #77DB36

Accessibility & contrast

On white

4.92
#407F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#407F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F17
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F17#FFFFFF#000000##FFFFFF
##407F171.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)
#7B6F23
Tritanopia (blue-blind)
#3D7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407f17;
/* rgb */ color: rgb(64, 127, 23);
/* oklch */ color: oklch(53.4% 0.148 136.3);
Tailwind
colors: {
  custom: {
    50: '#7ca55e',
    500: '#407f17',
    950: '#000000',
  },
}
SCSS
$custom: #407f17;
$custom-light: #7ca55e;
$custom-dark: #000000;
JSON
{
  "hex": "#407f17",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 96.346,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53384,
    "c": 0.14782,
    "h": 136.3
  },
  "luminance": 0.16331
}

Semantic roles & 50–950 ramp

primary
#407F17
secondary
#853EB4
accent
#3CECA7
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407F17

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

Preview Lab → · Contrast checker → · Palette generator →

#407F17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva