#505C40#505C40

#505C40 is a mid, muted yellow-green. Relative luminance 0.097; OKLCH L 45.6% C 0.046 H 127.0°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#505C40
RGBrgb(80, 92, 64)
HSLhsl(86, 18%, 31%)
HSVhsv(86, 30%, 36%)
CMYKcmyk(13%, 0%, 30.4%, 63.9%)
CIE-LABlab(37.35, -10.30, 14.62)
CIE-LCHlch(37.35, 17.88, 125.15°)
OKLaboklab(45.63% -0.0277 0.0368)
OKLCHoklch(45.63% 0.046 127)
XYZxyz(8.0607, 9.7299, 6.3029)
Luminance0.0973 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505C40 #4C405C
analogous
#5C5A40 #505C40 #425C40
triadic
#505C40 #40505C #5C4050
tetradic
#505C40 #405C5A #4C405C #5C4042
square
#505C40 #405C5A #4C405C #5C4042
split-complementary
#505C40 #40425C #5A405C
monochromatic
#11140E #313827 #505C40 #6F8059 #8EA076

Accessibility & contrast

On white

7.13
#505C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#505C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505C40
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505C40#FFFFFF#000000##FFFFFF
##505C401.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F583E
Deuteranopia (green-blind)
#5D5841
Tritanopia (blue-blind)
#525955
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #505c40;
/* rgb */ color: rgb(80, 92, 64);
/* oklch */ color: oklch(45.6% 0.046 127.0);
Tailwind
colors: {
  custom: {
    50: '#818a75',
    500: '#505c40',
    950: '#000000',
  },
}
SCSS
$custom: #505c40;
$custom-light: #818a75;
$custom-dark: #000000;
JSON
{
  "hex": "#505c40",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 64
  },
  "hsl": {
    "h": 85.714,
    "s": 17.949,
    "l": 30.588
  },
  "oklch": {
    "l": 0.45628,
    "c": 0.04609,
    "h": 127
  },
  "luminance": 0.0973
}

Semantic roles & 50–950 ramp

primary
#505C40
secondary
#7A6C8B
accent
#6DBB8E
background
#F7F8F7
surface
#EEF0ED
border
#C9CBC8
text
#0A0B08
muted
#7C7C7B

Preview Lab

Preview with #505C40

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

Preview Lab → · Contrast checker → · Palette generator →

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