#505F18#505F18

#505F18 is a mid, moderate yellow-green. Relative luminance 0.100; OKLCH L 45.8% C 0.096 H 120.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#505F18
RGBrgb(80, 95, 24)
HSLhsl(73, 60%, 23%)
HSVhsv(73, 75%, 37%)
CMYKcmyk(15.8%, 0%, 74.7%, 62.7%)
CIE-LABlab(37.76, -16.66, 36.72)
CIE-LCHlch(37.76, 40.32, 114.40°)
OKLaboklab(45.78% -0.0489 0.0823)
OKLCHoklch(45.78% 0.096 120.7)
XYZxyz(7.5655, 9.9559, 2.3871)
Luminance0.0996 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505F18 #27185F
analogous
#5F4A18 #505F18 #2C5F18
triadic
#505F18 #18505F #5F1850
tetradic
#505F18 #185F4A #27185F #5F182C
square
#505F18 #185F4A #27185F #5F182C
split-complementary
#505F18 #182C5F #4A185F
monochromatic
#151806 #272E0C #505F18 #799024 #A2C131

Accessibility & contrast

On white

7.02
#505F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#505F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505F18
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505F18#FFFFFF#000000##FFFFFF
##505F181.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#65590C
Deuteranopia (green-blind)
#63591E
Tritanopia (blue-blind)
#555A51
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #505f18;
/* rgb */ color: rgb(80, 95, 24);
/* oklch */ color: oklch(45.8% 0.096 120.7);
Tailwind
colors: {
  custom: {
    50: '#838c5a',
    500: '#505f18',
    950: '#000000',
  },
}
SCSS
$custom: #505f18;
$custom-light: #838c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#505f18",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 24
  },
  "hsl": {
    "h": 72.676,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.45778,
    "c": 0.09572,
    "h": 120.7
  },
  "luminance": 0.09956
}

Semantic roles & 50–950 ramp

primary
#505F18
secondary
#503D95
accent
#45E366
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C04
muted
#7C7D79

Preview Lab

Preview with #505F18

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

Preview Lab → · Contrast checker → · Palette generator →

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