#407F24#407F24

#407F24 is a mid, vivid green. Relative luminance 0.164; OKLCH L 53.5% C 0.140 H 137.7°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#407F24
RGBrgb(64, 127, 36)
HSLhsl(102, 56%, 32%)
HSVhsv(102, 72%, 50%)
CMYKcmyk(49.6%, 0%, 71.7%, 50.2%)
CIE-LABlab(47.49, -37.45, 41.33)
CIE-LCHlch(47.49, 55.77, 132.18°)
OKLaboklab(53.48% -0.1035 0.0941)
OKLCHoklch(53.48% 0.14 137.7)
XYZxyz(10.0218, 16.3954, 4.3053)
Luminance0.1640 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407F24 #63247F
analogous
#6E7F24 #407F24 #247F35
triadic
#407F24 #24407F #7F2440
tetradic
#407F24 #246E7F #63247F #7F3524
square
#407F24 #246E7F #63247F #7F3524
split-complementary
#407F24 #35247F #7F246E
monochromatic
#102009 #284F16 #407F24 #58AF32 #77CD50

Accessibility & contrast

On white

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

On black

4.28
#407F24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##407F24#FFFFFF#000000##FFFFFF
##407F241.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837416
Deuteranopia (green-blind)
#7B6F2C
Tritanopia (blue-blind)
#3C7A6D
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #407f24;
/* rgb */ color: rgb(64, 127, 36);
/* oklch */ color: oklch(53.5% 0.140 137.7);
Tailwind
colors: {
  custom: {
    50: '#7ba564',
    500: '#407f24',
    950: '#000000',
  },
}
SCSS
$custom: #407f24;
$custom-light: #7ba564;
$custom-dark: #000000;
JSON
{
  "hex": "#407f24",
  "rgb": {
    "r": 64,
    "g": 127,
    "b": 36
  },
  "hsl": {
    "h": 101.538,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53481,
    "c": 0.13991,
    "h": 137.7
  },
  "luminance": 0.16396
}

Semantic roles & 50–950 ramp

primary
#407F24
secondary
#934EB1
accent
#49DFB1
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407F24

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

Preview Lab → · Contrast checker → · Palette generator →

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