#407A1C#407A1C

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

Color values

HEX#407A1C
RGBrgb(64, 122, 28)
HSLhsl(97, 63%, 29%)
HSVhsv(97, 77%, 48%)
CMYKcmyk(47.5%, 0%, 77%, 52.2%)
CIE-LABlab(45.76, -35.95, 42.76)
CIE-LCHlch(45.76, 55.86, 130.05°)
OKLaboklab(52.04% -0.1 0.0959)
OKLCHoklch(52.04% 0.139 136.2)
XYZxyz(9.2832, 15.0923, 3.5223)
Luminance0.1509 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A1C #561C7A
analogous
#6F7A1C #407A1C #1C7A27
triadic
#407A1C #1C407A #7A1C40
tetradic
#407A1C #1C6F7A #561C7A #7A271C
square
#407A1C #1C6F7A #561C7A #7A271C
split-complementary
#407A1C #271C7A #7A1C6F
monochromatic
#0D1906 #264811 #407A1C #5AAC27 #77D33E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407A1C#FFFFFF#000000##FFFFFF
##407A1C1.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)
#7E6F09
Deuteranopia (green-blind)
#776B26
Tritanopia (blue-blind)
#3D7568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407a1c;
/* rgb */ color: rgb(64, 122, 28);
/* oklch */ color: oklch(52.0% 0.139 136.2);
Tailwind
colors: {
  custom: {
    50: '#7ba15f',
    500: '#407a1c',
    950: '#000000',
  },
}
SCSS
$custom: #407a1c;
$custom-light: #7ba15f;
$custom-dark: #000000;
JSON
{
  "hex": "#407a1c",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 28
  },
  "hsl": {
    "h": 97.021,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52043,
    "c": 0.1386,
    "h": 136.2
  },
  "luminance": 0.15093
}

Semantic roles & 50–950 ramp

primary
#407A1C
secondary
#8544AE
accent
#42E6A7
background
#F7F9F5
surface
#EEF2EA
border
#C9CCC6
text
#0A0F05
muted
#7C7E79

Preview Lab

Preview with #407A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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