#505A40#505A40

#505A40 is a mid, muted yellow-green. Relative luminance 0.094; OKLCH L 45.1% C 0.043 H 125.1°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#505A40
RGBrgb(80, 90, 64)
HSLhsl(83, 17%, 30%)
HSVhsv(83, 29%, 35%)
CMYKcmyk(11.1%, 0%, 28.9%, 64.7%)
CIE-LABlab(36.72, -9.13, 13.76)
CIE-LCHlch(36.72, 16.52, 123.57°)
OKLaboklab(45.12% -0.0245 0.0348)
OKLCHoklch(45.12% 0.043 125.1)
XYZxyz(7.8897, 9.3879, 6.2459)
Luminance0.0939 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505A40 #4A405A
analogous
#5A5740 #505A40 #435A40
triadic
#505A40 #40505A #5A4050
tetradic
#505A40 #405A57 #4A405A #5A4043
square
#505A40 #405A57 #4A405A #5A4043
split-complementary
#505A40 #40435A #57405A
monochromatic
#10120D #303627 #505A40 #707E59 #8F9E76

Accessibility & contrast

On white

7.30
#505A40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#505A40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505A40
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505A40#FFFFFF#000000##FFFFFF
##505A401.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D573E
Deuteranopia (green-blind)
#5B5641
Tritanopia (blue-blind)
#525853
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #505a40;
/* rgb */ color: rgb(80, 90, 64);
/* oklch */ color: oklch(45.1% 0.043 125.1);
Tailwind
colors: {
  custom: {
    50: '#818875',
    500: '#505a40',
    950: '#000000',
  },
}
SCSS
$custom: #505a40;
$custom-light: #818875;
$custom-dark: #000000;
JSON
{
  "hex": "#505a40",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 64
  },
  "hsl": {
    "h": 83.077,
    "s": 16.883,
    "l": 30.196
  },
  "oklch": {
    "l": 0.45124,
    "c": 0.04251,
    "h": 125.1
  },
  "luminance": 0.09388
}

Semantic roles & 50–950 ramp

primary
#505A40
secondary
#786C89
accent
#6EBA8B
background
#F7F8F7
surface
#EEEFED
border
#C9CAC8
text
#0A0B08
muted
#7C7C7B

Preview Lab

Preview with #505A40

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

Preview Lab → · Contrast checker → · Palette generator →

#505A40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva