#40784F#40784F

#40784F is a mid, moderate green. Relative luminance 0.151; OKLCH L 52.2% C 0.088 H 151.0°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#40784F
RGBrgb(64, 120, 79)
HSLhsl(136, 30%, 36%)
HSVhsv(136, 47%, 47%)
CMYKcmyk(46.7%, 0%, 34.2%, 52.9%)
CIE-LABlab(45.75, -28.25, 16.94)
CIE-LCHlch(45.75, 32.94, 149.05°)
OKLaboklab(52.25% -0.077 0.0427)
OKLCHoklch(52.25% 0.088 151)
XYZxyz(10.2415, 15.0867, 9.7680)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40784F #784069
analogous
#4D7840 #40784F #40786B
triadic
#40784F #4F4078 #784F40
tetradic
#40784F #404D78 #784069 #786B40
square
#40784F #404D78 #784069 #786B40
split-complementary
#40784F #6B4078 #78404D
monochromatic
#15281A #2B5035 #40784F #55A069 #7AB88B

Accessibility & contrast

On white

5.23
#40784F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#40784F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40784F
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40784F#FFFFFF#000000##FFFFFF
##40784F1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#78704C
Deuteranopia (green-blind)
#706A51
Tritanopia (blue-blind)
#35766D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #40784f;
/* rgb */ color: rgb(64, 120, 79);
/* oklch */ color: oklch(52.2% 0.088 151.0);
Tailwind
colors: {
  custom: {
    50: '#789f80',
    500: '#40784f',
    950: '#000000',
  },
}
SCSS
$custom: #40784f;
$custom-light: #789f80;
$custom-dark: #000000;
JSON
{
  "hex": "#40784f",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 79
  },
  "hsl": {
    "h": 136.071,
    "s": 30.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.52249,
    "c": 0.08801,
    "h": 151
  },
  "luminance": 0.15087
}

Semantic roles & 50–950 ramp

primary
#40784F
secondary
#A37195
accent
#61ABC7
background
#F7F9F7
surface
#EDF2EE
border
#C8CCC9
text
#090E0A
muted
#7B7E7C

Preview Lab

Preview with #40784F

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

Preview Lab → · Contrast checker → · Palette generator →

#40784F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva