#407D2C#407D2C

#407D2C is a mid, vivid green. Relative luminance 0.159; OKLCH L 53.0% C 0.131 H 138.8°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#407D2C
RGBrgb(64, 125, 44)
HSLhsl(105, 48%, 33%)
HSVhsv(105, 65%, 49%)
CMYKcmyk(48.8%, 0%, 64.8%, 51%)
CIE-LABlab(46.89, -35.82, 37.12)
CIE-LCHlch(46.89, 51.59, 133.98°)
OKLaboklab(53.02% -0.0985 0.0862)
OKLCHoklch(53.02% 0.131 138.8)
XYZxyz(9.9022, 15.9384, 4.9370)
Luminance0.1594 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407D2C #692C7D
analogous
#687D2C #407D2C #2C7D40
triadic
#407D2C #2C407D #7D2C40
tetradic
#407D2C #2C687D #692C7D #7D402C
square
#407D2C #2C687D #692C7D #7D402C
split-complementary
#407D2C #402C7D #7D2C68
monochromatic
#12220C #29501C #407D2C #57AA3C #77C65D

Accessibility & contrast

On white

5.01
#407D2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#407D2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407D2C
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407D2C#FFFFFF#000000##FFFFFF
##407D2C1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817223
Deuteranopia (green-blind)
#796D33
Tritanopia (blue-blind)
#3B796C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #407d2c;
/* rgb */ color: rgb(64, 125, 44);
/* oklch */ color: oklch(53.0% 0.131 138.8);
Tailwind
colors: {
  custom: {
    50: '#7aa369',
    500: '#407d2c',
    950: '#000000',
  },
}
SCSS
$custom: #407d2c;
$custom-light: #7aa369;
$custom-dark: #000000;
JSON
{
  "hex": "#407d2c",
  "rgb": {
    "r": 64,
    "g": 125,
    "b": 44
  },
  "hsl": {
    "h": 105.185,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.53015,
    "c": 0.13095,
    "h": 138.8
  },
  "luminance": 0.15939
}

Semantic roles & 50–950 ramp

primary
#407D2C
secondary
#9859AC
accent
#50D8B6
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A0F06
muted
#7C7F7A

Preview Lab

Preview with #407D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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