#407D22#407D22

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

Color values

HEX#407D22
RGBrgb(64, 125, 34)
HSLhsl(100, 57%, 31%)
HSVhsv(100, 73%, 49%)
CMYKcmyk(48.8%, 0%, 72.8%, 51%)
CIE-LABlab(46.81, -36.77, 41.45)
CIE-LCHlch(46.81, 55.41, 131.57°)
OKLaboklab(52.92% -0.1018 0.0941)
OKLCHoklch(52.92% 0.139 137.3)
XYZxyz(9.7364, 15.8721, 4.0636)
Luminance0.1587 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D22 #5F227D
analogous
#6D7D22 #407D22 #227D31
triadic
#407D22 #22407D #7D2240
tetradic
#407D22 #226D7D #5F227D #7D3122
square
#407D22 #226D7D #5F227D #7D3122
split-complementary
#407D22 #31227D #7D226D
monochromatic
#0F1D08 #274D15 #407D22 #59AD2F #76CE4B

Accessibility & contrast

On white

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

On black

4.17
#407D22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##407D22#FFFFFF#000000##FFFFFF
##407D221.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #407d22;
/* rgb */ color: rgb(64, 125, 34);
/* oklch */ color: oklch(52.9% 0.139 137.3);
Tailwind
colors: {
  custom: {
    50: '#7ba363',
    500: '#407d22',
    950: '#000000',
  },
}
SCSS
$custom: #407d22;
$custom-light: #7ba363;
$custom-dark: #000000;
JSON
{
  "hex": "#407d22",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 100.22,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52915,
    "c": 0.13864,
    "h": 137.3
  },
  "luminance": 0.15873
}

Semantic roles & 50–950 ramp

primary
#407D22
secondary
#8F4BB0
accent
#47E0AE
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #407D22

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

Preview Lab → · Contrast checker → · Palette generator →

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