#40794E#40794E

#40794E is a mid, moderate green. Relative luminance 0.153; OKLCH L 52.5% C 0.091 H 150.2°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#40794E
RGBrgb(64, 121, 78)
HSLhsl(135, 31%, 36%)
HSVhsv(135, 47%, 47%)
CMYKcmyk(47.1%, 0%, 35.5%, 52.5%)
CIE-LABlab(46.06, -28.92, 17.93)
CIE-LCHlch(46.06, 34.03, 148.20°)
OKLaboklab(52.49% -0.0787 0.045)
OKLCHoklch(52.49% 0.091 150.2)
XYZxyz(10.3262, 15.3141, 9.6180)
Luminance0.1532 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40794E #79406B
analogous
#4F7940 #40794E #40796B
triadic
#40794E #4E4079 #794E40
tetradic
#40794E #404F79 #79406B #796B40
square
#40794E #404F79 #79406B #796B40
split-complementary
#40794E #6B4079 #79404F
monochromatic
#16291A #2B5134 #40794E #55A168 #7AB98A

Accessibility & contrast

On white

5.17
#40794E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#40794E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40794E
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40794E#FFFFFF#000000##FFFFFF
##40794E1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A714B
Deuteranopia (green-blind)
#716B51
Tritanopia (blue-blind)
#35776E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #40794e;
/* rgb */ color: rgb(64, 121, 78);
/* oklch */ color: oklch(52.5% 0.091 150.2);
Tailwind
colors: {
  custom: {
    50: '#78a080',
    500: '#40794e',
    950: '#000000',
  },
}
SCSS
$custom: #40794e;
$custom-light: #78a080;
$custom-dark: #000000;
JSON
{
  "hex": "#40794e",
  "rgb": {
    "r": 64,
    "g": 121,
    "b": 78
  },
  "hsl": {
    "h": 134.737,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.52494,
    "c": 0.09072,
    "h": 150.2
  },
  "luminance": 0.15315
}

Semantic roles & 50–950 ramp

primary
#40794E
secondary
#A47197
accent
#61AEC7
background
#F7F9F7
surface
#EDF2EE
border
#C8CCC9
text
#090F0A
muted
#7B7E7C

Preview Lab

Preview with #40794E

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

Preview Lab → · Contrast checker → · Palette generator →

#40794E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva