#40804D#40804D

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

Color values

HEX#40804D
RGBrgb(64, 128, 77)
HSLhsl(132, 33%, 38%)
HSVhsv(132, 50%, 50%)
CMYKcmyk(50%, 0%, 39.8%, 49.8%)
CIE-LABlab(48.34, -32.40, 21.53)
CIE-LCHlch(48.34, 38.90, 146.39°)
OKLaboklab(54.35% -0.088 0.0536)
OKLCHoklch(54.35% 0.103 148.7)
XYZxyz(11.1724, 17.0633, 9.7246)
Luminance0.1706 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40804D #804073
analogous
#538040 #40804D #40806D
triadic
#40804D #4D4080 #804D40
tetradic
#40804D #405380 #804073 #806D40
square
#40804D #405380 #804073 #806D40
split-complementary
#40804D #6D4080 #804053
monochromatic
#172E1C #2C5734 #40804D #54A966 #7DBE8A

Accessibility & contrast

On white

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

On black

4.41
#40804D on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##40804D#FFFFFF#000000##FFFFFF
##40804D1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817749
Deuteranopia (green-blind)
#787050
Tritanopia (blue-blind)
#347E73
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #40804d;
/* rgb */ color: rgb(64, 128, 77);
/* oklch */ color: oklch(54.3% 0.103 148.7);
Tailwind
colors: {
  custom: {
    50: '#79a57f',
    500: '#40804d',
    950: '#000000',
  },
}
SCSS
$custom: #40804d;
$custom-light: #79a57f;
$custom-dark: #000000;
JSON
{
  "hex": "#40804d",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 77
  },
  "hsl": {
    "h": 132.188,
    "s": 33.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.54346,
    "c": 0.10302,
    "h": 148.7
  },
  "luminance": 0.17064
}

Semantic roles & 50–950 ramp

primary
#40804D
secondary
#A8749E
accent
#5EB4C9
background
#F7FAF7
surface
#EEF4EE
border
#C9CEC9
text
#090F0A
muted
#7B7F7C

Preview Lab

Preview with #40804D

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

Preview Lab → · Contrast checker → · Palette generator →

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