#407F11#407F11

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

Color values

HEX#407F11
RGBrgb(64, 127, 17)
HSLhsl(94, 76%, 28%)
HSVhsv(94, 87%, 50%)
CMYKcmyk(49.6%, 0%, 86.6%, 50.2%)
CIE-LABlab(47.38, -38.68, 47.80)
CIE-LCHlch(47.38, 61.49, 128.98°)
OKLaboklab(53.35% -0.1081 0.1048)
OKLCHoklch(53.35% 0.151 135.9)
XYZxyz(9.8046, 16.3085, 3.1614)
Luminance0.1631 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F11 #50117F
analogous
#777F11 #407F11 #117F19
triadic
#407F11 #11407F #7F1140
tetradic
#407F11 #11777F #50117F #7F1911
square
#407F11 #11777F #50117F #7F1911
split-complementary
#407F11 #19117F #7F1177
monochromatic
#0E1B04 #25490A #407F11 #5BB518 #78E228

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##407F11#FFFFFF#000000##FFFFFF
##407F111.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)
#7C6E1F
Tritanopia (blue-blind)
#3D7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407f11;
/* rgb */ color: rgb(64, 127, 17);
/* oklch */ color: oklch(53.4% 0.151 135.9);
Tailwind
colors: {
  custom: {
    50: '#7ca55b',
    500: '#407f11',
    950: '#000000',
  },
}
SCSS
$custom: #407f11;
$custom-light: #7ca55b;
$custom-dark: #000000;
JSON
{
  "hex": "#407f11",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 17
  },
  "hsl": {
    "h": 94.364,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53353,
    "c": 0.15053,
    "h": 135.9
  },
  "luminance": 0.16309
}

Semantic roles & 50–950 ramp

primary
#407F11
secondary
#7F37B5
accent
#35F3A2
background
#F7FAF5
surface
#EEF4E9
border
#C9CEC5
text
#0A0F04
muted
#7C7F79

Preview Lab

Preview with #407F11

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

Preview Lab → · Contrast checker → · Palette generator →

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