#407A28#407A28

#407A28 is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.1% C 0.130 H 137.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#407A28
RGBrgb(64, 122, 40)
HSLhsl(102, 51%, 32%)
HSVhsv(102, 67%, 48%)
CMYKcmyk(47.5%, 0%, 67.2%, 52.2%)
CIE-LABlab(45.85, -34.93, 37.83)
CIE-LCHlch(45.85, 51.49, 132.72°)
OKLaboklab(52.15% -0.0964 0.0873)
OKLCHoklch(52.15% 0.13 137.8)
XYZxyz(9.4566, 15.1616, 4.4353)
Luminance0.1516 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A28 #62287A
analogous
#697A28 #407A28 #287A39
triadic
#407A28 #28407A #7A2840
tetradic
#407A28 #28697A #62287A #7A3928
square
#407A28 #28697A #62287A #7A3928
split-complementary
#407A28 #39287A #7A2869
monochromatic
#101E0A #284C19 #407A28 #58A837 #77C755

Accessibility & contrast

On white

5.21
#407A28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#407A28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A28
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A28#FFFFFF#000000##FFFFFF
##407A281.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E701E
Deuteranopia (green-blind)
#766B2F
Tritanopia (blue-blind)
#3C7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407a28;
/* rgb */ color: rgb(64, 122, 40);
/* oklch */ color: oklch(52.1% 0.130 137.8);
Tailwind
colors: {
  custom: {
    50: '#7aa166',
    500: '#407a28',
    950: '#000000',
  },
}
SCSS
$custom: #407a28;
$custom-light: #7aa166;
$custom-dark: #000000;
JSON
{
  "hex": "#407a28",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 40
  },
  "hsl": {
    "h": 102.439,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.5215,
    "c": 0.13004,
    "h": 137.8
  },
  "luminance": 0.15162
}

Semantic roles & 50–950 ramp

primary
#407A28
secondary
#9252AC
accent
#4EDAB1
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#0A0F06
muted
#7C7E7A

Preview Lab

Preview with #407A28

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

Preview Lab → · Contrast checker → · Palette generator →

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