#407F14#407F14

#407F14 is a mid, vivid yellow-green. Relative luminance 0.163; OKLCH L 53.4% C 0.149 H 136.1°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#407F14
RGBrgb(64, 127, 20)
HSLhsl(95, 73%, 29%)
HSVhsv(95, 84%, 50%)
CMYKcmyk(49.6%, 0%, 84.3%, 50.2%)
CIE-LABlab(47.39, -38.54, 46.98)
CIE-LCHlch(47.39, 60.76, 129.36°)
OKLaboklab(53.37% -0.1075 0.1035)
OKLCHoklch(53.37% 0.149 136.1)
XYZxyz(9.8297, 16.3186, 3.2935)
Luminance0.1632 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F14 #53147F
analogous
#767F14 #407F14 #147F1E
triadic
#407F14 #14407F #7F1440
tetradic
#407F14 #14767F #53147F #7F1E14
square
#407F14 #14767F #53147F #7F1E14
split-complementary
#407F14 #1E147F #7F1476
monochromatic
#0D1A04 #254A0C #407F14 #5BB41C #77DE2F

Accessibility & contrast

On white

4.93
#407F14 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#407F14 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F14
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F14#FFFFFF#000000##FFFFFF
##407F141.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7C6E21
Tritanopia (blue-blind)
#3D7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407f14;
/* rgb */ color: rgb(64, 127, 20);
/* oklch */ color: oklch(53.4% 0.149 136.1);
Tailwind
colors: {
  custom: {
    50: '#7ca55d',
    500: '#407f14',
    950: '#000000',
  },
}
SCSS
$custom: #407f14;
$custom-light: #7ca55d;
$custom-dark: #000000;
JSON
{
  "hex": "#407f14",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 20
  },
  "hsl": {
    "h": 95.327,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53367,
    "c": 0.14925,
    "h": 136.1
  },
  "luminance": 0.16319
}

Semantic roles & 50–950 ramp

primary
#407F14
secondary
#823BB4
accent
#38EFA4
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F05
muted
#7C7F79

Preview Lab

Preview with #407F14

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

Preview Lab → · Contrast checker → · Palette generator →

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