#407C17#407C17

#407C17 is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.6% C 0.144 H 136.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#407C17
RGBrgb(64, 124, 23)
HSLhsl(96, 69%, 29%)
HSVhsv(96, 81%, 49%)
CMYKcmyk(48.4%, 0%, 81.5%, 51.4%)
CIE-LABlab(46.40, -37.12, 45.13)
CIE-LCHlch(46.40, 58.44, 129.44°)
OKLaboklab(52.56% -0.1035 0.1001)
OKLCHoklch(52.56% 0.144 136)
XYZxyz(9.4764, 15.5665, 3.3157)
Luminance0.1557 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C17 #53177C
analogous
#737C17 #407C17 #177C21
triadic
#407C17 #17407C #7C1740
tetradic
#407C17 #17737C #53177C #7C2117
square
#407C17 #17737C #53177C #7C2117
split-complementary
#407C17 #21177C #7C1773
monochromatic
#0D1A05 #25480D #407C17 #5BB021 #77D934

Accessibility & contrast

On white

5.11
#407C17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#407C17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C17
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C17#FFFFFF#000000##FFFFFF
##407C171.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#796C22
Tritanopia (blue-blind)
#3D7769
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c17;
/* rgb */ color: rgb(64, 124, 23);
/* oklch */ color: oklch(52.6% 0.144 136.0);
Tailwind
colors: {
  custom: {
    50: '#7ba25d',
    500: '#407c17',
    950: '#000000',
  },
}
SCSS
$custom: #407c17;
$custom-light: #7ba25d;
$custom-dark: #000000;
JSON
{
  "hex": "#407c17",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 23
  },
  "hsl": {
    "h": 95.644,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52559,
    "c": 0.14402,
    "h": 136
  },
  "luminance": 0.15567
}

Semantic roles & 50–950 ramp

primary
#407C17
secondary
#823EB1
accent
#3CECA4
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407C17

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

Preview Lab → · Contrast checker → · Palette generator →

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