#407226#407226

#407226 is a mid, vivid yellow-green. Relative luminance 0.133; OKLCH L 49.9% C 0.120 H 136.6°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#407226
RGBrgb(64, 114, 38)
HSLhsl(99, 50%, 30%)
HSVhsv(99, 67%, 45%)
CMYKcmyk(43.9%, 0%, 66.7%, 55.3%)
CIE-LABlab(43.16, -31.56, 35.81)
CIE-LCHlch(43.16, 47.73, 131.39°)
OKLaboklab(49.94% -0.0874 0.0828)
OKLCHoklch(49.94% 0.12 136.6)
XYZxyz(8.4813, 13.2641, 3.9467)
Luminance0.1326 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407226 #582672
analogous
#667226 #407226 #267232
triadic
#407226 #264072 #722640
tetradic
#407226 #266672 #582672 #723226
square
#407226 #266672 #582672 #723226
split-complementary
#407226 #322672 #722666
monochromatic
#0D1708 #264417 #407226 #5AA035 #77C44E

Accessibility & contrast

On white

5.75
#407226 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#407226 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407226
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407226#FFFFFF#000000##FFFFFF
##4072261.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#76691D
Deuteranopia (green-blind)
#6F642C
Tritanopia (blue-blind)
#3E6E62
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #407226;
/* rgb */ color: rgb(64, 114, 38);
/* oklch */ color: oklch(49.9% 0.120 136.6);
Tailwind
colors: {
  custom: {
    50: '#799b64',
    500: '#407226',
    950: '#000000',
  },
}
SCSS
$custom: #407226;
$custom-light: #799b64;
$custom-dark: #000000;
JSON
{
  "hex": "#407226",
  "rgb": {
    "r": 64,
    "g": 114,
    "b": 38
  },
  "hsl": {
    "h": 99.474,
    "s": 50,
    "l": 29.804
  },
  "oklch": {
    "l": 0.49935,
    "c": 0.12036,
    "h": 136.6
  },
  "luminance": 0.13265
}

Semantic roles & 50–950 ramp

primary
#407226
secondary
#874FA5
accent
#4EDAAA
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090E06
muted
#7B7E7A

Preview Lab

Preview with #407226

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

Preview Lab → · Contrast checker → · Palette generator →

#407226 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva