#407F1A#407F1A

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

Color values

HEX#407F1A
RGBrgb(64, 127, 26)
HSLhsl(97, 66%, 30%)
HSVhsv(97, 80%, 50%)
CMYKcmyk(49.6%, 0%, 79.5%, 50.2%)
CIE-LABlab(47.42, -38.19, 45.09)
CIE-LCHlch(47.42, 59.09, 130.26°)
OKLaboklab(53.4% -0.1062 0.1005)
OKLCHoklch(53.4% 0.146 136.6)
XYZxyz(9.8899, 16.3426, 3.6104)
Luminance0.1634 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F1A #591A7F
analogous
#727F1A #407F1A #1A7F27
triadic
#407F1A #1A407F #7F1A40
tetradic
#407F1A #1A727F #591A7F #7F271A
square
#407F1A #1A727F #591A7F #7F271A
split-complementary
#407F1A #271A7F #7F1A72
monochromatic
#0D1905 #264C10 #407F1A #5AB224 #77D73C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407F1A#FFFFFF#000000##FFFFFF
##407F1A1.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)
#847402
Deuteranopia (green-blind)
#7B6F25
Tritanopia (blue-blind)
#3D7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407f1a;
/* rgb */ color: rgb(64, 127, 26);
/* oklch */ color: oklch(53.4% 0.146 136.6);
Tailwind
colors: {
  custom: {
    50: '#7ba55f',
    500: '#407f1a',
    950: '#000000',
  },
}
SCSS
$custom: #407f1a;
$custom-light: #7ba55f;
$custom-dark: #000000;
JSON
{
  "hex": "#407f1a",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 97.426,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.53403,
    "c": 0.14624,
    "h": 136.6
  },
  "luminance": 0.16343
}

Semantic roles & 50–950 ramp

primary
#407F1A
secondary
#8842B3
accent
#3FE9A9
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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