#407D12#407D12

#407D12 is a mid, vivid yellow-green. Relative luminance 0.158; OKLCH L 52.8% C 0.148 H 135.7°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#407D12
RGBrgb(64, 125, 18)
HSLhsl(94, 75%, 28%)
HSVhsv(94, 86%, 49%)
CMYKcmyk(48.8%, 0%, 85.6%, 51%)
CIE-LABlab(46.71, -37.80, 46.93)
CIE-LCHlch(46.71, 60.26, 128.85°)
OKLaboklab(52.81% -0.1057 0.1031)
OKLCHoklch(52.81% 0.148 135.7)
XYZxyz(9.5569, 15.8003, 3.1183)
Luminance0.1580 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D12 #4F127D
analogous
#757D12 #407D12 #127D1A
triadic
#407D12 #12407D #7D1240
tetradic
#407D12 #12757D #4F127D #7D1A12
square
#407D12 #12757D #4F127D #7D1A12
split-complementary
#407D12 #1A127D #7D1275
monochromatic
#0E1B04 #25480A #407D12 #5BB21A #78E029

Accessibility & contrast

On white

5.05
#407D12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#407D12 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D12
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D12#FFFFFF#000000##FFFFFF
##407D121.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7A6D1F
Tritanopia (blue-blind)
#3E786A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d12;
/* rgb */ color: rgb(64, 125, 18);
/* oklch */ color: oklch(52.8% 0.148 135.7);
Tailwind
colors: {
  custom: {
    50: '#7ca35b',
    500: '#407d12',
    950: '#000000',
  },
}
SCSS
$custom: #407d12;
$custom-light: #7ca35b;
$custom-dark: #000000;
JSON
{
  "hex": "#407d12",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 18
  },
  "hsl": {
    "h": 94.206,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52807,
    "c": 0.14764,
    "h": 135.7
  },
  "luminance": 0.15801
}

Semantic roles & 50–950 ramp

primary
#407D12
secondary
#7E38B3
accent
#36F1A1
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #407D12

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

Preview Lab → · Contrast checker → · Palette generator →

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