#407C22#407C22

#407C22 is a mid, vivid green. Relative luminance 0.156; OKLCH L 52.6% C 0.137 H 137.2°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#407C22
RGBrgb(64, 124, 34)
HSLhsl(100, 57%, 31%)
HSVhsv(100, 73%, 49%)
CMYKcmyk(48.4%, 0%, 72.6%, 51.4%)
CIE-LABlab(46.47, -36.34, 41.11)
CIE-LCHlch(46.47, 54.87, 131.48°)
OKLaboklab(52.64% -0.1007 0.0934)
OKLCHoklch(52.64% 0.137 137.2)
XYZxyz(9.6104, 15.6202, 4.0216)
Luminance0.1562 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407C22 #5E227C
analogous
#6D7C22 #407C22 #227C31
triadic
#407C22 #22407C #7C2240
tetradic
#407C22 #226D7C #5E227C #7C3122
square
#407C22 #226D7C #5E227C #7C3122
split-complementary
#407C22 #31227C #7C226D
monochromatic
#0E1C08 #274C15 #407C22 #59AC2F #76CE4B

Accessibility & contrast

On white

5.09
#407C22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#407C22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407C22
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407C22#FFFFFF#000000##FFFFFF
##407C221.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807114
Deuteranopia (green-blind)
#786C2A
Tritanopia (blue-blind)
#3D776A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #407c22;
/* rgb */ color: rgb(64, 124, 34);
/* oklch */ color: oklch(52.6% 0.137 137.2);
Tailwind
colors: {
  custom: {
    50: '#7ba263',
    500: '#407c22',
    950: '#000000',
  },
}
SCSS
$custom: #407c22;
$custom-light: #7ba263;
$custom-dark: #000000;
JSON
{
  "hex": "#407c22",
  "rgb": {
    "r": 64,
    "g": 124,
    "b": 34
  },
  "hsl": {
    "h": 100,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.52641,
    "c": 0.1373,
    "h": 137.2
  },
  "luminance": 0.15621
}

Semantic roles & 50–950 ramp

primary
#407C22
secondary
#8D4BAF
accent
#48E0AD
background
#F7FAF6
surface
#EEF3EB
border
#C9CDC6
text
#0A0F05
muted
#7C7F7A

Preview Lab

Preview with #407C22

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

Preview Lab → · Contrast checker → · Palette generator →

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