#407342#407342

#407342 is a mid, moderate green. Relative luminance 0.137; OKLCH L 50.6% C 0.094 H 144.9°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#407342
RGBrgb(64, 115, 66)
HSLhsl(122, 28%, 35%)
HSVhsv(122, 44%, 45%)
CMYKcmyk(44.3%, 0%, 42.6%, 54.9%)
CIE-LABlab(43.86, -28.23, 21.89)
CIE-LCHlch(43.86, 35.72, 142.21°)
OKLaboklab(50.63% -0.0768 0.0541)
OKLCHoklch(50.63% 0.094 144.9)
XYZxyz(9.2280, 13.7442, 7.3198)
Luminance0.1374 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407342 #734071
analogous
#577340 #407342 #40735B
triadic
#407342 #424073 #734240
tetradic
#407342 #405773 #734071 #735B40
square
#407342 #405773 #734071 #735B40
split-complementary
#407342 #5B4073 #734057
monochromatic
#142415 #2A4C2B #407342 #569A59 #79B47B

Accessibility & contrast

On white

5.60
#407342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#407342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407342
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407342#FFFFFF#000000##FFFFFF
##4073421.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756B3E
Deuteranopia (green-blind)
#6D6645
Tritanopia (blue-blind)
#397167
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #407342;
/* rgb */ color: rgb(64, 115, 66);
/* oklch */ color: oklch(50.6% 0.094 144.9);
Tailwind
colors: {
  custom: {
    50: '#789b77',
    500: '#407342',
    950: '#000000',
  },
}
SCSS
$custom: #407342;
$custom-light: #789b77;
$custom-dark: #000000;
JSON
{
  "hex": "#407342",
  "rgb": {
    "r": 64,
    "g": 115,
    "b": 66
  },
  "hsl": {
    "h": 122.353,
    "s": 28.492,
    "l": 35.098
  },
  "oklch": {
    "l": 0.50632,
    "c": 0.09395,
    "h": 144.9
  },
  "luminance": 0.13745
}

Semantic roles & 50–950 ramp

primary
#407342
secondary
#9F709D
accent
#63C1C5
background
#F7F9F7
surface
#EDF2ED
border
#C8CCC8
text
#090E08
muted
#7B7E7B

Preview Lab

Preview with #407342

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

Preview Lab → · Contrast checker → · Palette generator →

#407342 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva