#407E28#407E28

#407E28 is a mid, vivid green. Relative luminance 0.162; OKLCH L 53.2% C 0.136 H 138.2°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#407E28
RGBrgb(64, 126, 40)
HSLhsl(103, 52%, 33%)
HSVhsv(103, 68%, 49%)
CMYKcmyk(49.2%, 0%, 68.3%, 50.6%)
CIE-LABlab(47.19, -36.66, 39.28)
CIE-LCHlch(47.19, 53.73, 133.02°)
OKLaboklab(53.25% -0.1011 0.0903)
OKLCHoklch(53.25% 0.136 138.2)
XYZxyz(9.9579, 16.1642, 4.6024)
Luminance0.1616 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407E28 #66287E
analogous
#6B7E28 #407E28 #287E3B
triadic
#407E28 #28407E #7E2840
tetradic
#407E28 #286B7E #66287E #7E3B28
square
#407E28 #286B7E #66287E #7E3B28
split-complementary
#407E28 #3B287E #7E286B
monochromatic
#11210B #285019 #407E28 #58AC37 #77CA57

Accessibility & contrast

On white

4.96
#407E28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#407E28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407E28
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407E28#FFFFFF#000000##FFFFFF
##407E281.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#82731D
Deuteranopia (green-blind)
#7A6E2F
Tritanopia (blue-blind)
#3C7A6C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #407e28;
/* rgb */ color: rgb(64, 126, 40);
/* oklch */ color: oklch(53.2% 0.136 138.2);
Tailwind
colors: {
  custom: {
    50: '#7ba466',
    500: '#407e28',
    950: '#000000',
  },
}
SCSS
$custom: #407e28;
$custom-light: #7ba466;
$custom-dark: #000000;
JSON
{
  "hex": "#407e28",
  "rgb": {
    "r": 64,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 103.256,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.53245,
    "c": 0.13557,
    "h": 138.2
  },
  "luminance": 0.16165
}

Semantic roles & 50–950 ramp

primary
#407E28
secondary
#9553AF
accent
#4DDBB3
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407E28

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

Preview Lab → · Contrast checker → · Palette generator →

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