#505D18#505D18

#505D18 is a mid, moderate yellow-green. Relative luminance 0.096; OKLCH L 45.3% C 0.093 H 119.6°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#505D18
RGBrgb(80, 93, 24)
HSLhsl(71, 59%, 23%)
HSVhsv(71, 74%, 36%)
CMYKcmyk(14%, 0%, 74.2%, 63.5%)
CIE-LABlab(37.12, -15.56, 36.07)
CIE-LCHlch(37.12, 39.28, 113.34°)
OKLaboklab(45.26% -0.0459 0.0809)
OKLCHoklch(45.26% 0.093 119.6)
XYZxyz(7.3876, 9.6002, 2.3278)
Luminance0.0960 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505D18 #25185D
analogous
#5D4718 #505D18 #2E5D18
triadic
#505D18 #18505D #5D1850
tetradic
#505D18 #185D47 #25185D #5D182E
square
#505D18 #185D47 #25185D #5D182E
split-complementary
#505D18 #182E5D #47185D
monochromatic
#151806 #262C0B #505D18 #7A8E25 #A4BE31

Accessibility & contrast

On white

7.19
#505D18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#505D18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505D18
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505D18#FFFFFF#000000##FFFFFF
##505D181.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#63570D
Deuteranopia (green-blind)
#62581D
Tritanopia (blue-blind)
#55584F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #505d18;
/* rgb */ color: rgb(80, 93, 24);
/* oklch */ color: oklch(45.3% 0.093 119.6);
Tailwind
colors: {
  custom: {
    50: '#838a5a',
    500: '#505d18',
    950: '#000000',
  },
}
SCSS
$custom: #505d18;
$custom-light: #838a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#505d18",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 24
  },
  "hsl": {
    "h": 71.304,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.45256,
    "c": 0.09302,
    "h": 119.6
  },
  "luminance": 0.096
}

Semantic roles & 50–950 ramp

primary
#505D18
secondary
#4E3D93
accent
#46E263
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #505D18

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

Preview Lab → · Contrast checker → · Palette generator →

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