#407142#407142

#407142 is a mid, moderate green. Relative luminance 0.133; OKLCH L 50.1% C 0.091 H 144.9°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#407142
RGBrgb(64, 113, 66)
HSLhsl(122, 28%, 35%)
HSVhsv(122, 43%, 44%)
CMYKcmyk(43.4%, 0%, 41.6%, 55.7%)
CIE-LABlab(43.20, -27.26, 21.03)
CIE-LCHlch(43.20, 34.43, 142.36°)
OKLaboklab(50.09% -0.0742 0.0521)
OKLCHoklch(50.09% 0.091 144.9)
XYZxyz(9.0024, 13.2930, 7.2447)
Luminance0.1329 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#407142 #71406F
analogous
#577140 #407142 #40715B
triadic
#407142 #424071 #714240
tetradic
#407142 #405771 #71406F #715B40
square
#407142 #405771 #71406F #715B40
split-complementary
#407142 #5B4071 #714057
monochromatic
#142314 #2A4A2B #407142 #569859 #79B37B

Accessibility & contrast

On white

5.74
#407142 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#407142 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #407142
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##407142#FFFFFF#000000##FFFFFF
##4071421.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73693F
Deuteranopia (green-blind)
#6C6445
Tritanopia (blue-blind)
#3A6F65
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #407142;
/* rgb */ color: rgb(64, 113, 66);
/* oklch */ color: oklch(50.1% 0.091 144.9);
Tailwind
colors: {
  custom: {
    50: '#789a77',
    500: '#407142',
    950: '#000000',
  },
}
SCSS
$custom: #407142;
$custom-light: #789a77;
$custom-dark: #000000;
JSON
{
  "hex": "#407142",
  "rgb": {
    "r": 64,
    "g": 113,
    "b": 66
  },
  "hsl": {
    "h": 122.449,
    "s": 27.684,
    "l": 34.706
  },
  "oklch": {
    "l": 0.50093,
    "c": 0.09066,
    "h": 144.9
  },
  "luminance": 0.13294
}

Semantic roles & 50–950 ramp

primary
#407142
secondary
#9E6F9C
accent
#64C0C4
background
#F7F9F7
surface
#EDF2ED
border
#C8CCC8
text
#090E08
muted
#7B7E7B

Preview Lab

Preview with #407142

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

Preview Lab → · Contrast checker → · Palette generator →

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