#407D17#407D17

#407D17 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.8% C 0.145 H 136.1°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#407D17
RGBrgb(64, 125, 23)
HSLhsl(96, 69%, 29%)
HSVhsv(96, 82%, 49%)
CMYKcmyk(48.8%, 0%, 81.6%, 51%)
CIE-LABlab(46.74, -37.54, 45.45)
CIE-LCHlch(46.74, 58.95, 129.56°)
OKLaboklab(52.83% -0.1047 0.1008)
OKLCHoklch(52.83% 0.145 136.1)
XYZxyz(9.6024, 15.8185, 3.3577)
Luminance0.1582 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D17 #54177D
analogous
#737D17 #407D17 #177D21
triadic
#407D17 #17407D #7D1740
tetradic
#407D17 #17737D #54177D #7D2117
square
#407D17 #17737D #54177D #7D2117
split-complementary
#407D17 #21177D #7D1773
monochromatic
#0D1A05 #26490D #407D17 #5AB121 #77DA35

Accessibility & contrast

On white

5.04
#407D17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#407D17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D17
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D17#FFFFFF#000000##FFFFFF
##407D171.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #407d17;
/* rgb */ color: rgb(64, 125, 23);
/* oklch */ color: oklch(52.8% 0.145 136.1);
Tailwind
colors: {
  custom: {
    50: '#7ba35d',
    500: '#407d17',
    950: '#000000',
  },
}
SCSS
$custom: #407d17;
$custom-light: #7ba35d;
$custom-dark: #000000;
JSON
{
  "hex": "#407d17",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 23
  },
  "hsl": {
    "h": 95.882,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.52834,
    "c": 0.14529,
    "h": 136.1
  },
  "luminance": 0.15819
}

Semantic roles & 50–950 ramp

primary
#407D17
secondary
#833EB2
accent
#3CECA5
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407D17

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

Preview Lab → · Contrast checker → · Palette generator →

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