#407A17#407A17

#407A17 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.0% C 0.141 H 135.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#407A17
RGBrgb(64, 122, 23)
HSLhsl(95, 68%, 28%)
HSVhsv(95, 81%, 48%)
CMYKcmyk(47.5%, 0%, 81.1%, 52.2%)
CIE-LABlab(45.73, -36.27, 44.50)
CIE-LCHlch(45.73, 57.41, 129.18°)
OKLaboklab(52.01% -0.1013 0.0988)
OKLCHoklch(52.01% 0.141 135.7)
XYZxyz(9.2283, 15.0703, 3.2330)
Luminance0.1507 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A17 #51177A
analogous
#717A17 #407A17 #177A20
triadic
#407A17 #17407A #7A1740
tetradic
#407A17 #17717A #51177A #7A2017
square
#407A17 #17717A #51177A #7A2017
split-complementary
#407A17 #20177A #7A1771
monochromatic
#0E1A05 #25470D #407A17 #5BAD21 #77D933

Accessibility & contrast

On white

5.23
#407A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#407A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A17
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A17#FFFFFF#000000##FFFFFF
##407A171.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#776B22
Tritanopia (blue-blind)
#3E7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407a17;
/* rgb */ color: rgb(64, 122, 23);
/* oklch */ color: oklch(52.0% 0.141 135.7);
Tailwind
colors: {
  custom: {
    50: '#7ba15d',
    500: '#407a17',
    950: '#000000',
  },
}
SCSS
$custom: #407a17;
$custom-light: #7ba15d;
$custom-dark: #000000;
JSON
{
  "hex": "#407a17",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 95.152,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.52008,
    "c": 0.14147,
    "h": 135.7
  },
  "luminance": 0.15071
}

Semantic roles & 50–950 ramp

primary
#407A17
secondary
#803EAF
accent
#3DEBA3
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #407A17

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

Preview Lab → · Contrast checker → · Palette generator →

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