#407D24#407D24

#407D24 is a mid, vivid green. Relative luminance 0.159; OKLCH L 52.9% C 0.137 H 137.5°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#407D24
RGBrgb(64, 125, 36)
HSLhsl(101, 55%, 32%)
HSVhsv(101, 71%, 49%)
CMYKcmyk(48.8%, 0%, 71.2%, 51%)
CIE-LABlab(46.82, -36.60, 40.63)
CIE-LCHlch(46.82, 54.68, 132.01°)
OKLaboklab(52.93% -0.1012 0.0927)
OKLCHoklch(52.93% 0.137 137.5)
XYZxyz(9.7661, 15.8839, 4.2200)
Luminance0.1588 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D24 #61247D
analogous
#6D7D24 #407D24 #247D35
triadic
#407D24 #24407D #7D2440
tetradic
#407D24 #246D7D #61247D #7D3524
square
#407D24 #246D7D #61247D #7D3524
split-complementary
#407D24 #35247D #7D246D
monochromatic
#0F1E09 #284D16 #407D24 #58AD32 #76CC4F

Accessibility & contrast

On white

5.03
#407D24 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#407D24 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D24
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D24#FFFFFF#000000##FFFFFF
##407D241.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817217
Deuteranopia (green-blind)
#796D2C
Tritanopia (blue-blind)
#3C786B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d24;
/* rgb */ color: rgb(64, 125, 36);
/* oklch */ color: oklch(52.9% 0.137 137.5);
Tailwind
colors: {
  custom: {
    50: '#7ba364',
    500: '#407d24',
    950: '#000000',
  },
}
SCSS
$custom: #407d24;
$custom-light: #7ba364;
$custom-dark: #000000;
JSON
{
  "hex": "#407d24",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 36
  },
  "hsl": {
    "h": 101.124,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.52933,
    "c": 0.13722,
    "h": 137.5
  },
  "luminance": 0.15885
}

Semantic roles & 50–950 ramp

primary
#407D24
secondary
#914DAF
accent
#49DFB0
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407D24

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

Preview Lab → · Contrast checker → · Palette generator →

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