#407A12#407A12

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

Color values

HEX#407A12
RGBrgb(64, 122, 18)
HSLhsl(93, 74%, 27%)
HSVhsv(93, 85%, 48%)
CMYKcmyk(47.5%, 0%, 85.2%, 52.2%)
CIE-LABlab(45.71, -36.54, 46.03)
CIE-LCHlch(45.71, 58.77, 128.45°)
OKLaboklab(51.98% -0.1023 0.1012)
OKLCHoklch(51.98% 0.144 135.3)
XYZxyz(9.1829, 15.0522, 2.9936)
Luminance0.1505 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A12 #4C127A
analogous
#747A12 #407A12 #127A18
triadic
#407A12 #12407A #7A1240
tetradic
#407A12 #12747A #4C127A #7A1812
square
#407A12 #12747A #4C127A #7A1812
split-complementary
#407A12 #18127A #7A1274
monochromatic
#0E1B04 #24450A #407A12 #5CAF1A #79DF27

Accessibility & contrast

On white

5.24
#407A12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#407A12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A12
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A12#FFFFFF#000000##FFFFFF
##407A121.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#776A1F
Tritanopia (blue-blind)
#3E7567
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #407a12;
/* rgb */ color: rgb(64, 122, 18);
/* oklch */ color: oklch(52.0% 0.144 135.3);
Tailwind
colors: {
  custom: {
    50: '#7ba15b',
    500: '#407a12',
    950: '#000000',
  },
}
SCSS
$custom: #407a12;
$custom-light: #7ba15b;
$custom-dark: #000000;
JSON
{
  "hex": "#407a12",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 18
  },
  "hsl": {
    "h": 93.462,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.5198,
    "c": 0.14389,
    "h": 135.3
  },
  "luminance": 0.15053
}

Semantic roles & 50–950 ramp

primary
#407A12
secondary
#7B38B0
accent
#37F19F
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#0A0F04
muted
#7C7E79

Preview Lab

Preview with #407A12

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

Preview Lab → · Contrast checker → · Palette generator →

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