#407A2A#407A2A

#407A2A is a mid, vivid green. Relative luminance 0.152; OKLCH L 52.2% C 0.128 H 138.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#407A2A
RGBrgb(64, 122, 42)
HSLhsl(104, 49%, 32%)
HSVhsv(104, 66%, 48%)
CMYKcmyk(47.5%, 0%, 65.6%, 52.2%)
CIE-LABlab(45.87, -34.73, 36.93)
CIE-LCHlch(45.87, 50.69, 133.24°)
OKLaboklab(52.17% -0.0957 0.0856)
OKLCHoklch(52.17% 0.128 138.2)
XYZxyz(9.4915, 15.1756, 4.6191)
Luminance0.1518 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A2A #642A7A
analogous
#687A2A #407A2A #2A7A3C
triadic
#407A2A #2A407A #7A2A40
tetradic
#407A2A #2A687A #642A7A #7A3C2A
square
#407A2A #2A687A #642A7A #7A3C2A
split-complementary
#407A2A #3C2A7A #7A2A68
monochromatic
#101F0B #284C1A #407A2A #58A83A #77C659

Accessibility & contrast

On white

5.20
#407A2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#407A2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A2A
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A2A#FFFFFF#000000##FFFFFF
##407A2A1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #407a2a;
/* rgb */ color: rgb(64, 122, 42);
/* oklch */ color: oklch(52.2% 0.128 138.2);
Tailwind
colors: {
  custom: {
    50: '#7aa167',
    500: '#407a2a',
    950: '#000000',
  },
}
SCSS
$custom: #407a2a;
$custom-light: #7aa167;
$custom-dark: #000000;
JSON
{
  "hex": "#407a2a",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 42
  },
  "hsl": {
    "h": 103.5,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.52172,
    "c": 0.1284,
    "h": 138.2
  },
  "luminance": 0.15176
}

Semantic roles & 50–950 ramp

primary
#407A2A
secondary
#9355AB
accent
#4FD8B3
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#0A0F06
muted
#7C7E7A

Preview Lab

Preview with #407A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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