#407C12#407C12

#407C12 is a mid, vivid yellow-green. Relative luminance 0.155; OKLCH L 52.5% C 0.146 H 135.6°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#407C12
RGBrgb(64, 124, 18)
HSLhsl(94, 75%, 28%)
HSVhsv(94, 85%, 49%)
CMYKcmyk(48.4%, 0%, 85.5%, 51.4%)
CIE-LABlab(46.38, -37.39, 46.63)
CIE-LCHlch(46.38, 59.77, 128.72°)
OKLaboklab(52.53% -0.1045 0.1025)
OKLCHoklch(52.53% 0.146 135.6)
XYZxyz(9.4310, 15.5484, 3.0763)
Luminance0.1555 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C12 #4E127C
analogous
#757C12 #407C12 #127C19
triadic
#407C12 #12407C #7C1240
tetradic
#407C12 #12757C #4E127C #7C1912
square
#407C12 #12757C #4E127C #7C1912
split-complementary
#407C12 #19127C #7C1275
monochromatic
#0E1B04 #24470A #407C12 #5CB11A #78E029

Accessibility & contrast

On white

5.11
#407C12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#407C12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C12
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C12#FFFFFF#000000##FFFFFF
##407C121.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817100
Deuteranopia (green-blind)
#796C1F
Tritanopia (blue-blind)
#3E7769
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c12;
/* rgb */ color: rgb(64, 124, 18);
/* oklch */ color: oklch(52.5% 0.146 135.6);
Tailwind
colors: {
  custom: {
    50: '#7ba25b',
    500: '#407c12',
    950: '#000000',
  },
}
SCSS
$custom: #407c12;
$custom-light: #7ba25b;
$custom-dark: #000000;
JSON
{
  "hex": "#407c12",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 18
  },
  "hsl": {
    "h": 93.962,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.52531,
    "c": 0.1464,
    "h": 135.6
  },
  "luminance": 0.15549
}

Semantic roles & 50–950 ramp

primary
#407C12
secondary
#7D38B2
accent
#37F1A0
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #407C12

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

Preview Lab → · Contrast checker → · Palette generator →

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