#407D1D#407D1D

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

Color values

HEX#407D1D
RGBrgb(64, 125, 29)
HSLhsl(98, 62%, 30%)
HSVhsv(98, 77%, 49%)
CMYKcmyk(48.8%, 0%, 76.8%, 51%)
CIE-LABlab(46.77, -37.15, 43.38)
CIE-LCHlch(46.77, 57.11, 130.58°)
OKLaboklab(52.88% -0.1032 0.0974)
OKLCHoklch(52.88% 0.142 136.7)
XYZxyz(9.6695, 15.8453, 3.7111)
Luminance0.1585 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D1D #5A1D7D
analogous
#707D1D #407D1D #1D7D2A
triadic
#407D1D #1D407D #7D1D40
tetradic
#407D1D #1D707D #5A1D7D #7D2A1D
square
#407D1D #1D707D #5A1D7D #7D2A1D
split-complementary
#407D1D #2A1D7D #7D1D70
monochromatic
#0D1A06 #274B11 #407D1D #59AF29 #76D341

Accessibility & contrast

On white

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

On black

4.17
#407D1D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##407D1D#FFFFFF#000000##FFFFFF
##407D1D1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817209
Deuteranopia (green-blind)
#796D27
Tritanopia (blue-blind)
#3D786B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d1d;
/* rgb */ color: rgb(64, 125, 29);
/* oklch */ color: oklch(52.9% 0.142 136.7);
Tailwind
colors: {
  custom: {
    50: '#7ba360',
    500: '#407d1d',
    950: '#000000',
  },
}
SCSS
$custom: #407d1d;
$custom-light: #7ba360;
$custom-dark: #000000;
JSON
{
  "hex": "#407d1d",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 29
  },
  "hsl": {
    "h": 98.125,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52875,
    "c": 0.14191,
    "h": 136.7
  },
  "luminance": 0.15846
}

Semantic roles & 50–950 ramp

primary
#407D1D
secondary
#8945B1
accent
#42E5AA
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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