#407F1D#407F1D

#407F1D is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.4% C 0.144 H 136.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#407F1D
RGBrgb(64, 127, 29)
HSLhsl(99, 63%, 31%)
HSVhsv(99, 77%, 50%)
CMYKcmyk(49.6%, 0%, 77.2%, 50.2%)
CIE-LABlab(47.44, -37.99, 44.04)
CIE-LCHlch(47.44, 58.16, 130.78°)
OKLaboklab(53.42% -0.1055 0.0988)
OKLCHoklch(53.42% 0.145 136.9)
XYZxyz(9.9252, 16.3568, 3.7963)
Luminance0.1636 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F1D #5C1D7F
analogous
#717F1D #407F1D #1D7F2B
triadic
#407F1D #1D407F #7F1D40
tetradic
#407F1D #1D717F #5C1D7F #7F2B1D
square
#407F1D #1D717F #5C1D7F #7F2B1D
split-complementary
#407F1D #2B1D7F #7F1D71
monochromatic
#0E1B06 #274D12 #407F1D #59B128 #76D442

Accessibility & contrast

On white

4.92
#407F1D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#407F1D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F1D
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F1D#FFFFFF#000000##FFFFFF
##407F1D1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837408
Deuteranopia (green-blind)
#7B6F27
Tritanopia (blue-blind)
#3C7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407f1d;
/* rgb */ color: rgb(64, 127, 29);
/* oklch */ color: oklch(53.4% 0.144 136.9);
Tailwind
colors: {
  custom: {
    50: '#7ba561',
    500: '#407f1d',
    950: '#000000',
  },
}
SCSS
$custom: #407f1d;
$custom-light: #7ba561;
$custom-dark: #000000;
JSON
{
  "hex": "#407f1d",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 29
  },
  "hsl": {
    "h": 98.571,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.53424,
    "c": 0.1445,
    "h": 136.9
  },
  "luminance": 0.16357
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #407F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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