#407F20#407F20

#407F20 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.4% C 0.143 H 137.2°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#407F20
RGBrgb(64, 127, 32)
HSLhsl(100, 60%, 31%)
HSVhsv(100, 75%, 50%)
CMYKcmyk(49.6%, 0%, 74.8%, 50.2%)
CIE-LABlab(47.46, -37.77, 42.92)
CIE-LCHlch(47.46, 57.17, 131.35°)
OKLaboklab(53.45% -0.1047 0.0969)
OKLCHoklch(53.45% 0.143 137.2)
XYZxyz(9.9641, 16.3723, 4.0013)
Luminance0.1637 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F20 #5F207F
analogous
#6F7F20 #407F20 #207F2F
triadic
#407F20 #20407F #7F2040
tetradic
#407F20 #206F7F #5F207F #7F2F20
square
#407F20 #206F7F #5F207F #7F2F20
split-complementary
#407F20 #2F207F #7F206F
monochromatic
#0F1D07 #274E14 #407F20 #59B02C #76D148

Accessibility & contrast

On white

4.91
#407F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#407F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407F20
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407F20#FFFFFF#000000##FFFFFF
##407F201.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#83740F
Deuteranopia (green-blind)
#7B6F29
Tritanopia (blue-blind)
#3C7A6C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #407f20;
/* rgb */ color: rgb(64, 127, 32);
/* oklch */ color: oklch(53.4% 0.143 137.2);
Tailwind
colors: {
  custom: {
    50: '#7ba562',
    500: '#407f20',
    950: '#000000',
  },
}
SCSS
$custom: #407f20;
$custom-light: #7ba562;
$custom-dark: #000000;
JSON
{
  "hex": "#407f20",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 32
  },
  "hsl": {
    "h": 99.789,
    "s": 59.748,
    "l": 31.176
  },
  "oklch": {
    "l": 0.53447,
    "c": 0.14262,
    "h": 137.2
  },
  "luminance": 0.16373
}

Semantic roles & 50–950 ramp

primary
#407F20
secondary
#8F49B2
accent
#45E3AE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #407F20

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

Preview Lab → · Contrast checker → · Palette generator →

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