#505A42#505A42

#505A42 is a mid, muted yellow-green. Relative luminance 0.094; OKLCH L 45.2% C 0.040 H 126.3°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#505A42
RGBrgb(80, 90, 66)
HSLhsl(85, 15%, 31%)
HSVhsv(85, 27%, 35%)
CMYKcmyk(11.1%, 0%, 26.7%, 64.7%)
CIE-LABlab(36.76, -8.79, 12.60)
CIE-LCHlch(36.76, 15.36, 124.89°)
OKLaboklab(45.17% -0.0235 0.032)
OKLCHoklch(45.17% 0.04 126.3)
XYZxyz(7.9477, 9.4111, 6.5510)
Luminance0.0941 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505A42 #4C425A
analogous
#5A5842 #505A42 #445A42
triadic
#505A42 #42505A #5A4250
tetradic
#505A42 #425A58 #4C425A #5A4244
square
#505A42 #425A58 #4C425A #5A4244
split-complementary
#505A42 #42445A #58425A
monochromatic
#11130E #313728 #505A42 #6F7D5C #8E9D79

Accessibility & contrast

On white

7.29
#505A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #505A42
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505A42#FFFFFF#000000##FFFFFF
##505A421.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D5741
Deuteranopia (green-blind)
#5B5643
Tritanopia (blue-blind)
#515854
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #505a42;
/* rgb */ color: rgb(80, 90, 66);
/* oklch */ color: oklch(45.2% 0.040 126.3);
Tailwind
colors: {
  custom: {
    50: '#818876',
    500: '#505a42',
    950: '#000000',
  },
}
SCSS
$custom: #505a42;
$custom-light: #818876;
$custom-dark: #000000;
JSON
{
  "hex": "#505a42",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 66
  },
  "hsl": {
    "h": 85,
    "s": 15.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.45172,
    "c": 0.03968,
    "h": 126.3
  },
  "luminance": 0.09411
}

Semantic roles & 50–950 ramp

primary
#505A42
secondary
#7A6F89
accent
#70B88E
background
#F7F8F7
surface
#EEEFED
border
#C9CAC8
text
#0A0B08
muted
#7C7C7B

Preview Lab

Preview with #505A42

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

Preview Lab → · Contrast checker → · Palette generator →

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