#407B28#407B28

#407B28 is a mid, vivid green. Relative luminance 0.154; OKLCH L 52.4% C 0.131 H 137.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#407B28
RGBrgb(64, 123, 40)
HSLhsl(103, 51%, 32%)
HSVhsv(103, 67%, 48%)
CMYKcmyk(48%, 0%, 67.5%, 51.8%)
CIE-LABlab(46.19, -35.36, 38.19)
CIE-LCHlch(46.19, 52.05, 132.80°)
OKLaboklab(52.42% -0.0976 0.0881)
OKLCHoklch(52.42% 0.131 137.9)
XYZxyz(9.5800, 15.4085, 4.4764)
Luminance0.1541 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B28 #63287B
analogous
#6A7B28 #407B28 #287B3A
triadic
#407B28 #28407B #7B2840
tetradic
#407B28 #286A7B #63287B #7B3A28
square
#407B28 #286A7B #63287B #7B3A28
split-complementary
#407B28 #3A287B #7B286A
monochromatic
#101F0A #284D19 #407B28 #58A937 #77C856

Accessibility & contrast

On white

5.14
#407B28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#407B28 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407B28
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407B28#FFFFFF#000000##FFFFFF
##407B281.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F711D
Deuteranopia (green-blind)
#776C2F
Tritanopia (blue-blind)
#3C776A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407b28;
/* rgb */ color: rgb(64, 123, 40);
/* oklch */ color: oklch(52.4% 0.131 137.9);
Tailwind
colors: {
  custom: {
    50: '#7aa266',
    500: '#407b28',
    950: '#000000',
  },
}
SCSS
$custom: #407b28;
$custom-light: #7aa266;
$custom-dark: #000000;
JSON
{
  "hex": "#407b28",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 40
  },
  "hsl": {
    "h": 102.651,
    "s": 50.92,
    "l": 31.961
  },
  "oklch": {
    "l": 0.52424,
    "c": 0.13143,
    "h": 137.9
  },
  "luminance": 0.15409
}

Semantic roles & 50–950 ramp

primary
#407B28
secondary
#9352AD
accent
#4DDAB2
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407B28

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

Preview Lab → · Contrast checker → · Palette generator →

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