#40804E#40804E

#40804E is a mid, moderate green. Relative luminance 0.171; OKLCH L 54.4% C 0.102 H 149.1°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#40804E
RGBrgb(64, 128, 78)
HSLhsl(133, 33%, 38%)
HSVhsv(133, 50%, 50%)
CMYKcmyk(50%, 0%, 39.1%, 49.8%)
CIE-LABlab(48.36, -32.21, 20.99)
CIE-LCHlch(48.36, 38.45, 146.91°)
OKLaboklab(54.37% -0.0875 0.0523)
OKLCHoklch(54.37% 0.102 149.1)
XYZxyz(11.2080, 17.0775, 9.9119)
Luminance0.1708 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40804E #804072
analogous
#528040 #40804E #40806E
triadic
#40804E #4E4080 #804E40
tetradic
#40804E #405280 #804072 #806E40
square
#40804E #405280 #804072 #806E40
split-complementary
#40804E #6E4080 #804052
monochromatic
#172E1C #2C5735 #40804E #54A967 #7DBE8B

Accessibility & contrast

On white

4.76
#40804E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#40804E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #40804E
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40804E#FFFFFF#000000##FFFFFF
##40804E1.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81774B
Deuteranopia (green-blind)
#787051
Tritanopia (blue-blind)
#347E73
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #40804e;
/* rgb */ color: rgb(64, 128, 78);
/* oklch */ color: oklch(54.4% 0.102 149.1);
Tailwind
colors: {
  custom: {
    50: '#79a580',
    500: '#40804e',
    950: '#000000',
  },
}
SCSS
$custom: #40804e;
$custom-light: #79a580;
$custom-dark: #000000;
JSON
{
  "hex": "#40804e",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 78
  },
  "hsl": {
    "h": 133.125,
    "s": 33.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.54367,
    "c": 0.10197,
    "h": 149.1
  },
  "luminance": 0.17078
}

Semantic roles & 50–950 ramp

primary
#40804E
secondary
#A8749D
accent
#5EB2C9
background
#F7FAF7
surface
#EEF4EE
border
#C9CEC9
text
#090F0A
muted
#7B7F7C

Preview Lab

Preview with #40804E

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

Preview Lab → · Contrast checker → · Palette generator →

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