#407E1D#407E1D

#407E1D is a mid, vivid yellow-green. Relative luminance 0.161; OKLCH L 53.1% C 0.143 H 136.8°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#407E1D
RGBrgb(64, 126, 29)
HSLhsl(98, 63%, 30%)
HSVhsv(98, 77%, 49%)
CMYKcmyk(49.2%, 0%, 77%, 50.6%)
CIE-LABlab(47.11, -37.57, 43.71)
CIE-LCHlch(47.11, 57.64, 130.68°)
OKLaboklab(53.15% -0.1044 0.0981)
OKLCHoklch(53.15% 0.143 136.8)
XYZxyz(9.7967, 16.0998, 3.7535)
Luminance0.1610 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E1D #5B1D7E
analogous
#707E1D #407E1D #1D7E2B
triadic
#407E1D #1D407E #7E1D40
tetradic
#407E1D #1D707E #5B1D7E #7E2B1D
square
#407E1D #1D707E #5B1D7E #7E2B1D
split-complementary
#407E1D #2B1D7E #7E1D70
monochromatic
#0D1B06 #274C12 #407E1D #59B028 #76D342

Accessibility & contrast

On white

4.98
#407E1D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#407E1D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407E1D
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E1D#FFFFFF#000000##FFFFFF
##407E1D1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827309
Deuteranopia (green-blind)
#7A6E27
Tritanopia (blue-blind)
#3D796B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e1d;
/* rgb */ color: rgb(64, 126, 29);
/* oklch */ color: oklch(53.1% 0.143 136.8);
Tailwind
colors: {
  custom: {
    50: '#7ba460',
    500: '#407e1d',
    950: '#000000',
  },
}
SCSS
$custom: #407e1d;
$custom-light: #7ba460;
$custom-dark: #000000;
JSON
{
  "hex": "#407e1d",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 29
  },
  "hsl": {
    "h": 98.351,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53149,
    "c": 0.14322,
    "h": 136.8
  },
  "luminance": 0.161
}

Semantic roles & 50–950 ramp

primary
#407E1D
secondary
#8A45B1
accent
#42E6AB
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407E1D

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

Preview Lab → · Contrast checker → · Palette generator →

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