#407B2C#407B2C

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

Color values

HEX#407B2C
RGBrgb(64, 123, 44)
HSLhsl(105, 47%, 33%)
HSVhsv(105, 64%, 48%)
CMYKcmyk(48%, 0%, 64.2%, 51.8%)
CIE-LABlab(46.23, -34.95, 36.37)
CIE-LCHlch(46.23, 50.45, 133.86°)
OKLaboklab(52.47% -0.0962 0.0847)
OKLCHoklch(52.47% 0.128 138.6)
XYZxyz(9.6516, 15.4371, 4.8535)
Luminance0.1544 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407B2C #672C7B
analogous
#677B2C #407B2C #2C7B3F
triadic
#407B2C #2C407B #7B2C40
tetradic
#407B2C #2C677B #672C7B #7B3F2C
square
#407B2C #2C677B #672C7B #7B3F2C
split-complementary
#407B2C #3F2C7B #7B2C67
monochromatic
#11210C #294E1C #407B2C #57A83C #77C55D

Accessibility & contrast

On white

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

On black

4.09
#407B2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##407B2C#FFFFFF#000000##FFFFFF
##407B2C1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #407b2c;
/* rgb */ color: rgb(64, 123, 44);
/* oklch */ color: oklch(52.5% 0.128 138.6);
Tailwind
colors: {
  custom: {
    50: '#7aa268',
    500: '#407b2c',
    950: '#000000',
  },
}
SCSS
$custom: #407b2c;
$custom-light: #7aa268;
$custom-dark: #000000;
JSON
{
  "hex": "#407b2c",
  "rgb": {
    "r": 64,
    "g": 123,
    "b": 44
  },
  "hsl": {
    "h": 104.81,
    "s": 47.305,
    "l": 32.745
  },
  "oklch": {
    "l": 0.52468,
    "c": 0.12813,
    "h": 138.6
  },
  "luminance": 0.15438
}

Semantic roles & 50–950 ramp

primary
#407B2C
secondary
#9658AB
accent
#51D7B5
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407B2C

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

Preview Lab → · Contrast checker → · Palette generator →

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