#40784B#40784B

#40784B is a mid, moderate green. Relative luminance 0.150; OKLCH L 52.2% C 0.092 H 148.8°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#40784B
RGBrgb(64, 120, 75)
HSLhsl(132, 30%, 36%)
HSVhsv(132, 47%, 47%)
CMYKcmyk(46.7%, 0%, 37.5%, 52.9%)
CIE-LABlab(45.68, -29.01, 19.14)
CIE-LCHlch(45.68, 34.76, 146.59°)
OKLaboklab(52.16% -0.0789 0.0478)
OKLCHoklch(52.16% 0.092 148.8)
XYZxyz(10.1002, 15.0302, 9.0241)
Luminance0.1503 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40784B #78406D
analogous
#517840 #40784B #407867
triadic
#40784B #4B4078 #784B40
tetradic
#40784B #405178 #78406D #786740
square
#40784B #405178 #78406D #786740
split-complementary
#40784B #674078 #784051
monochromatic
#152819 #2B5032 #40784B #55A064 #7AB886

Accessibility & contrast

On white

5.24
#40784B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #40784B
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40784B#FFFFFF#000000##FFFFFF
##40784B1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#797048
Deuteranopia (green-blind)
#716A4E
Tritanopia (blue-blind)
#36766D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #40784b;
/* rgb */ color: rgb(64, 120, 75);
/* oklch */ color: oklch(52.2% 0.092 148.8);
Tailwind
colors: {
  custom: {
    50: '#789f7d',
    500: '#40784b',
    950: '#000000',
  },
}
SCSS
$custom: #40784b;
$custom-light: #789f7d;
$custom-dark: #000000;
JSON
{
  "hex": "#40784b",
  "rgb": {
    "r": 64,
    "g": 120,
    "b": 75
  },
  "hsl": {
    "h": 131.786,
    "s": 30.435,
    "l": 36.078
  },
  "oklch": {
    "l": 0.52161,
    "c": 0.09231,
    "h": 148.8
  },
  "luminance": 0.15031
}

Semantic roles & 50–950 ramp

primary
#40784B
secondary
#A37199
accent
#61B3C7
background
#F7F9F7
surface
#EDF2EE
border
#C8CCC9
text
#090E09
muted
#7B7E7B

Preview Lab

Preview with #40784B

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

Preview Lab → · Contrast checker → · Palette generator →

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