#407A26#407A26

#407A26 is a mid, vivid green. Relative luminance 0.151; OKLCH L 52.1% C 0.132 H 137.5°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#407A26
RGBrgb(64, 122, 38)
HSLhsl(101, 53%, 31%)
HSVhsv(101, 69%, 48%)
CMYKcmyk(47.5%, 0%, 68.9%, 52.2%)
CIE-LABlab(45.84, -35.12, 38.72)
CIE-LCHlch(45.84, 52.27, 132.21°)
OKLaboklab(52.13% -0.0971 0.0889)
OKLCHoklch(52.13% 0.132 137.5)
XYZxyz(9.4234, 15.1484, 4.2607)
Luminance0.1515 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407A26 #60267A
analogous
#6A7A26 #407A26 #267A36
triadic
#407A26 #26407A #7A2640
tetradic
#407A26 #266A7A #60267A #7A3626
square
#407A26 #266A7A #60267A #7A3626
split-complementary
#407A26 #36267A #7A266A
monochromatic
#0F1D09 #284B17 #407A26 #58A935 #76C951

Accessibility & contrast

On white

5.21
#407A26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#407A26 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407A26
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407A26#FFFFFF#000000##FFFFFF
##407A261.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E701B
Deuteranopia (green-blind)
#766B2D
Tritanopia (blue-blind)
#3D7669
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #407a26;
/* rgb */ color: rgb(64, 122, 38);
/* oklch */ color: oklch(52.1% 0.132 137.5);
Tailwind
colors: {
  custom: {
    50: '#7aa165',
    500: '#407a26',
    950: '#000000',
  },
}
SCSS
$custom: #407a26;
$custom-light: #7aa165;
$custom-dark: #000000;
JSON
{
  "hex": "#407a26",
  "rgb": {
    "r": 64,
    "g": 122,
    "b": 38
  },
  "hsl": {
    "h": 101.429,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5213,
    "c": 0.13162,
    "h": 137.5
  },
  "luminance": 0.15149
}

Semantic roles & 50–950 ramp

primary
#407A26
secondary
#9050AC
accent
#4CDCAF
background
#F7F9F6
surface
#EEF2EB
border
#C9CCC6
text
#0A0F06
muted
#7C7E7A

Preview Lab

Preview with #407A26

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

Preview Lab → · Contrast checker → · Palette generator →

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