#505C18#505C18

#505C18 is a dark, moderate yellow-green. Relative luminance 0.094; OKLCH L 45.0% C 0.092 H 118.9°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#505C18
RGBrgb(80, 92, 24)
HSLhsl(71, 59%, 23%)
HSVhsv(71, 74%, 36%)
CMYKcmyk(13%, 0%, 73.9%, 63.9%)
CIE-LABlab(36.79, -15.01, 35.74)
CIE-LCHlch(36.79, 38.77, 112.78°)
OKLaboklab(45% -0.0443 0.0802)
OKLCHoklch(45% 0.092 118.9)
XYZxyz(7.3004, 9.4258, 2.2987)
Luminance0.0943 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505C18 #24185C
analogous
#5C4618 #505C18 #2E5C18
triadic
#505C18 #18505C #5C1850
tetradic
#505C18 #185C46 #24185C #5C182E
square
#505C18 #185C46 #24185C #5C182E
split-complementary
#505C18 #182E5C #46185C
monochromatic
#151806 #262B0B #505C18 #7A8D25 #A4BD31

Accessibility & contrast

On white

7.28
#505C18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#505C18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505C18
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505C18#FFFFFF#000000##FFFFFF
##505C181.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#62570D
Deuteranopia (green-blind)
#61571D
Tritanopia (blue-blind)
#55574E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #505c18;
/* rgb */ color: rgb(80, 92, 24);
/* oklch */ color: oklch(45.0% 0.092 118.9);
Tailwind
colors: {
  custom: {
    50: '#838a5a',
    500: '#505c18',
    950: '#000000',
  },
}
SCSS
$custom: #505c18;
$custom-light: #838a5a;
$custom-dark: #000000;
JSON
{
  "hex": "#505c18",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 24
  },
  "hsl": {
    "h": 70.588,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.44996,
    "c": 0.09167,
    "h": 118.9
  },
  "luminance": 0.09426
}

Semantic roles & 50–950 ramp

primary
#505C18
secondary
#4C3D93
accent
#46E261
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #505C18

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

Preview Lab → · Contrast checker → · Palette generator →

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