#407F1B#407F1B

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

Color values

HEX#407F1B
RGBrgb(64, 127, 27)
HSLhsl(98, 65%, 30%)
HSVhsv(98, 79%, 50%)
CMYKcmyk(49.6%, 0%, 78.7%, 50.2%)
CIE-LABlab(47.43, -38.13, 44.75)
CIE-LCHlch(47.43, 58.79, 130.43°)
OKLaboklab(53.41% -0.106 0.0999)
OKLCHoklch(53.41% 0.146 136.7)
XYZxyz(9.9013, 16.3472, 3.6703)
Luminance0.1635 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F1B #5A1B7F
analogous
#727F1B #407F1B #1B7F28
triadic
#407F1B #1B407F #7F1B40
tetradic
#407F1B #1B727F #5A1B7F #7F281B
square
#407F1B #1B727F #5A1B7F #7F281B
split-complementary
#407F1B #281B7F #7F1B72
monochromatic
#0D1A06 #274D10 #407F1B #59B126 #76D63E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407F1B#FFFFFF#000000##FFFFFF
##407F1B1.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)
#847404
Deuteranopia (green-blind)
#7B6F26
Tritanopia (blue-blind)
#3D7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407f1b;
/* rgb */ color: rgb(64, 127, 27);
/* oklch */ color: oklch(53.4% 0.146 136.7);
Tailwind
colors: {
  custom: {
    50: '#7ba560',
    500: '#407f1b',
    950: '#000000',
  },
}
SCSS
$custom: #407f1b;
$custom-light: #7ba560;
$custom-dark: #000000;
JSON
{
  "hex": "#407f1b",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 27
  },
  "hsl": {
    "h": 97.8,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.5341,
    "c": 0.14568,
    "h": 136.7
  },
  "luminance": 0.16348
}

Semantic roles & 50–950 ramp

primary
#407F1B
secondary
#8943B3
accent
#40E8AA
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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