#407B22#407B22

#407B22 is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.4% C 0.136 H 137.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#407B22
RGBrgb(64, 123, 34)
HSLhsl(100, 57%, 31%)
HSVhsv(100, 72%, 48%)
CMYKcmyk(48%, 0%, 72.4%, 51.8%)
CIE-LABlab(46.14, -35.91, 40.76)
CIE-LCHlch(46.14, 54.32, 131.38°)
OKLaboklab(52.37% -0.0995 0.0926)
OKLCHoklch(52.37% 0.136 137)
XYZxyz(9.4858, 15.3708, 3.9801)
Luminance0.1537 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B22 #5D227B
analogous
#6C7B22 #407B22 #227B30
triadic
#407B22 #22407B #7B2240
tetradic
#407B22 #226C7B #5D227B #7B3022
square
#407B22 #226C7B #5D227B #7B3022
split-complementary
#407B22 #30227B #7B226C
monochromatic
#0E1B07 #274B15 #407B22 #59AB2F #76CD4A

Accessibility & contrast

On white

5.15
#407B22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#407B22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407B22
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407B22#FFFFFF#000000##FFFFFF
##407B221.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7014
Deuteranopia (green-blind)
#776B2A
Tritanopia (blue-blind)
#3D7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b22;
/* rgb */ color: rgb(64, 123, 34);
/* oklch */ color: oklch(52.4% 0.136 137.0);
Tailwind
colors: {
  custom: {
    50: '#7aa263',
    500: '#407b22',
    950: '#000000',
  },
}
SCSS
$custom: #407b22;
$custom-light: #7aa263;
$custom-dark: #000000;
JSON
{
  "hex": "#407b22",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 34
  },
  "hsl": {
    "h": 99.775,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.52366,
    "c": 0.13596,
    "h": 137
  },
  "luminance": 0.15371
}

Semantic roles & 50–950 ramp

primary
#407B22
secondary
#8C4BAE
accent
#48E0AD
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #407B22

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

Preview Lab → · Contrast checker → · Palette generator →

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