#40804F#40804F

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

Color values

HEX#40804F
RGBrgb(64, 128, 79)
HSLhsl(134, 33%, 38%)
HSVhsv(134, 50%, 50%)
CMYKcmyk(50%, 0%, 38.3%, 49.8%)
CIE-LABlab(48.38, -32.03, 20.45)
CIE-LCHlch(48.38, 38.00, 147.44°)
OKLaboklab(54.39% -0.087 0.0511)
OKLCHoklch(54.39% 0.101 149.6)
XYZxyz(11.2441, 17.0920, 10.1022)
Luminance0.1709 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40804F #804071
analogous
#518040 #40804F #40806F
triadic
#40804F #4F4080 #804F40
tetradic
#40804F #405180 #804071 #806F40
square
#40804F #405180 #804071 #806F40
split-complementary
#40804F #6F4080 #804051
monochromatic
#172E1D #2C5736 #40804F #54A968 #7DBE8C

Accessibility & contrast

On white

4.75
#40804F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #40804F
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40804F#FFFFFF#000000##FFFFFF
##40804F1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81774C
Deuteranopia (green-blind)
#787052
Tritanopia (blue-blind)
#347E74
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #40804f;
/* rgb */ color: rgb(64, 128, 79);
/* oklch */ color: oklch(54.4% 0.101 149.6);
Tailwind
colors: {
  custom: {
    50: '#79a581',
    500: '#40804f',
    950: '#000000',
  },
}
SCSS
$custom: #40804f;
$custom-light: #79a581;
$custom-dark: #000000;
JSON
{
  "hex": "#40804f",
  "rgb": {
    "r": 64,
    "g": 128,
    "b": 79
  },
  "hsl": {
    "h": 134.063,
    "s": 33.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.54388,
    "c": 0.10091,
    "h": 149.6
  },
  "luminance": 0.17093
}

Semantic roles & 50–950 ramp

primary
#40804F
secondary
#A8749C
accent
#5EB0C9
background
#F7FAF7
surface
#EEF4EE
border
#C9CEC9
text
#090F0A
muted
#7B7F7C

Preview Lab

Preview with #40804F

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

Preview Lab → · Contrast checker → · Palette generator →

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