#407828#407828

#407828 is a mid, vivid green. Relative luminance 0.147; OKLCH L 51.6% C 0.127 H 137.6°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#407828
RGBrgb(64, 120, 40)
HSLhsl(102, 50%, 31%)
HSVhsv(102, 67%, 47%)
CMYKcmyk(46.7%, 0%, 66.7%, 52.9%)
CIE-LABlab(45.19, -34.05, 37.10)
CIE-LCHlch(45.19, 50.36, 132.55°)
OKLaboklab(51.6% -0.094 0.0857)
OKLCHoklch(51.6% 0.127 137.6)
XYZxyz(9.2135, 14.6756, 4.3542)
Luminance0.1468 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407828 #602878
analogous
#687828 #407828 #287838
triadic
#407828 #284078 #782840
tetradic
#407828 #286878 #602878 #783828
square
#407828 #286878 #602878 #783828
split-complementary
#407828 #382878 #782868
monochromatic
#0F1C09 #284A19 #407828 #58A637 #76C654

Accessibility & contrast

On white

5.34
#407828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#407828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407828
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407828#FFFFFF#000000##FFFFFF
##4078281.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E1E
Deuteranopia (green-blind)
#74692F
Tritanopia (blue-blind)
#3D7467
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #407828;
/* rgb */ color: rgb(64, 120, 40);
/* oklch */ color: oklch(51.6% 0.127 137.6);
Tailwind
colors: {
  custom: {
    50: '#7a9f66',
    500: '#407828',
    950: '#000000',
  },
}
SCSS
$custom: #407828;
$custom-light: #7a9f66;
$custom-dark: #000000;
JSON
{
  "hex": "#407828",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 102,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.51602,
    "c": 0.12724,
    "h": 137.6
  },
  "luminance": 0.14676
}

Semantic roles & 50–950 ramp

primary
#407828
secondary
#9052AA
accent
#4EDAB0
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#090E06
muted
#7B7E7A

Preview Lab

Preview with #407828

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

Preview Lab → · Contrast checker → · Palette generator →

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