#407C1A#407C1A

#407C1A is a mid, vivid yellow-green. Relative luminance 0.156; OKLCH L 52.6% C 0.142 H 136.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#407C1A
RGBrgb(64, 124, 26)
HSLhsl(97, 65%, 29%)
HSVhsv(97, 79%, 49%)
CMYKcmyk(48.4%, 0%, 79%, 51.4%)
CIE-LABlab(46.42, -36.93, 44.13)
CIE-LCHlch(46.42, 57.54, 129.93°)
OKLaboklab(52.58% -0.1028 0.0985)
OKLCHoklch(52.58% 0.142 136.2)
XYZxyz(9.5082, 15.5793, 3.4832)
Luminance0.1558 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C1A #561A7C
analogous
#717C1A #407C1A #1A7C25
triadic
#407C1A #1A407C #7C1A40
tetradic
#407C1A #1A717C #561A7C #7C251A
square
#407C1A #1A717C #561A7C #7C251A
split-complementary
#407C1A #251A7C #7C1A71
monochromatic
#0D1905 #26490F #407C1A #5AAF25 #77D63B

Accessibility & contrast

On white

5.10
#407C1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#407C1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C1A
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C1A#FFFFFF#000000##FFFFFF
##407C1A1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817103
Deuteranopia (green-blind)
#796C24
Tritanopia (blue-blind)
#3D776A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c1a;
/* rgb */ color: rgb(64, 124, 26);
/* oklch */ color: oklch(52.6% 0.142 136.2);
Tailwind
colors: {
  custom: {
    50: '#7ba25f',
    500: '#407c1a',
    950: '#000000',
  },
}
SCSS
$custom: #407c1a;
$custom-light: #7ba25f;
$custom-dark: #000000;
JSON
{
  "hex": "#407c1a",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 26
  },
  "hsl": {
    "h": 96.735,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52578,
    "c": 0.14239,
    "h": 136.2
  },
  "luminance": 0.1558
}

Semantic roles & 50–950 ramp

primary
#407C1A
secondary
#8542B0
accent
#40E8A7
background
#F7FAF5
surface
#EEF3EA
border
#C9CDC6
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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