#40784D#40784D

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

Color values

HEX#40784D
RGBrgb(64, 120, 77)
HSLhsl(134, 30%, 36%)
HSVhsv(134, 47%, 47%)
CMYKcmyk(46.7%, 0%, 35.8%, 52.9%)
CIE-LABlab(45.71, -28.64, 18.04)
CIE-LCHlch(45.71, 33.84, 147.79°)
OKLaboklab(52.21% -0.078 0.0453)
OKLCHoklch(52.21% 0.09 149.9)
XYZxyz(10.1698, 15.0580, 9.3903)
Luminance0.1506 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40784D #78406B
analogous
#4F7840 #40784D #407869
triadic
#40784D #4D4078 #784D40
tetradic
#40784D #404F78 #78406B #786940
square
#40784D #404F78 #78406B #786940
split-complementary
#40784D #694078 #78404F
monochromatic
#15281A #2B5033 #40784D #55A067 #7AB889

Accessibility & contrast

On white

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

On black

4.01
#40784D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##40784D#FFFFFF#000000##FFFFFF
##40784D1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#79704A
Deuteranopia (green-blind)
#706A50
Tritanopia (blue-blind)
#36766D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #40784d;
/* rgb */ color: rgb(64, 120, 77);
/* oklch */ color: oklch(52.2% 0.090 149.9);
Tailwind
colors: {
  custom: {
    50: '#789f7f',
    500: '#40784d',
    950: '#000000',
  },
}
SCSS
$custom: #40784d;
$custom-light: #789f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#40784d",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 77
  },
  "hsl": {
    "h": 133.929,
    "s": 30.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.52205,
    "c": 0.09016,
    "h": 149.9
  },
  "luminance": 0.15059
}

Semantic roles & 50–950 ramp

primary
#40784D
secondary
#A37197
accent
#61AFC7
background
#F7F9F7
surface
#EDF2EE
border
#C8CCC9
text
#090E0A
muted
#7B7E7C

Preview Lab

Preview with #40784D

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

Preview Lab → · Contrast checker → · Palette generator →

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