#407B31#407B31

#407B31 is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.5% C 0.124 H 139.7°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#407B31
RGBrgb(64, 123, 49)
HSLhsl(108, 43%, 34%)
HSVhsv(108, 60%, 48%)
CMYKcmyk(48%, 0%, 60.2%, 51.8%)
CIE-LABlab(46.28, -34.38, 34.00)
CIE-LCHlch(46.28, 48.35, 135.32°)
OKLaboklab(52.53% -0.0943 0.0801)
OKLCHoklch(52.53% 0.124 139.7)
XYZxyz(9.7513, 15.4770, 5.3787)
Luminance0.1548 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B31 #6C317B
analogous
#657B31 #407B31 #317B47
triadic
#407B31 #31407B #7B3140
tetradic
#407B31 #31657B #6C317B #7B4731
square
#407B31 #31657B #6C317B #7B4731
split-complementary
#407B31 #47317B #7B3165
monochromatic
#12230E #294F20 #407B31 #57A742 #78C265

Accessibility & contrast

On white

5.13
#407B31 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#407B31 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407B31
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407B31#FFFFFF#000000##FFFFFF
##407B311.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7129
Deuteranopia (green-blind)
#766C37
Tritanopia (blue-blind)
#3B776B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407b31;
/* rgb */ color: rgb(64, 123, 49);
/* oklch */ color: oklch(52.5% 0.124 139.7);
Tailwind
colors: {
  custom: {
    50: '#7aa26c',
    500: '#407b31',
    950: '#000000',
  },
}
SCSS
$custom: #407b31;
$custom-light: #7aa26c;
$custom-dark: #000000;
JSON
{
  "hex": "#407b31",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 49
  },
  "hsl": {
    "h": 107.838,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.52529,
    "c": 0.12371,
    "h": 139.7
  },
  "luminance": 0.15478
}

Semantic roles & 50–950 ramp

primary
#407B31
secondary
#9A5FA9
accent
#55D3B9
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#090F07
muted
#7B7F7A

Preview Lab

Preview with #407B31

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

Preview Lab → · Contrast checker → · Palette generator →

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