#407A1B#407A1B

#407A1B is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.0% C 0.139 H 136.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#407A1B
RGBrgb(64, 122, 27)
HSLhsl(97, 64%, 29%)
HSVhsv(97, 78%, 48%)
CMYKcmyk(47.5%, 0%, 77.9%, 52.2%)
CIE-LABlab(45.75, -36.02, 43.12)
CIE-LCHlch(45.75, 56.18, 129.87°)
OKLaboklab(52.04% -0.1003 0.0965)
OKLCHoklch(52.04% 0.139 136.1)
XYZxyz(9.2715, 15.0876, 3.4604)
Luminance0.1509 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A1B #551B7A
analogous
#707A1B #407A1B #1B7A26
triadic
#407A1B #1B407A #7A1B40
tetradic
#407A1B #1B707A #551B7A #7A261B
square
#407A1B #1B707A #551B7A #7A261B
split-complementary
#407A1B #261B7A #7A1B70
monochromatic
#0D1906 #264810 #407A1B #5AAC26 #77D43C

Accessibility & contrast

On white

5.23
#407A1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#407A1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A1B
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A1B#FFFFFF#000000##FFFFFF
##407A1B1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F06
Deuteranopia (green-blind)
#776B25
Tritanopia (blue-blind)
#3E7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407a1b;
/* rgb */ color: rgb(64, 122, 27);
/* oklch */ color: oklch(52.0% 0.139 136.1);
Tailwind
colors: {
  custom: {
    50: '#7ba15f',
    500: '#407a1b',
    950: '#000000',
  },
}
SCSS
$custom: #407a1b;
$custom-light: #7ba15f;
$custom-dark: #000000;
JSON
{
  "hex": "#407a1b",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 27
  },
  "hsl": {
    "h": 96.632,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.52035,
    "c": 0.13921,
    "h": 136.1
  },
  "luminance": 0.15088
}

Semantic roles & 50–950 ramp

primary
#407A1B
secondary
#8443AE
accent
#41E7A6
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #407A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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