#505E18#505E18

#505E18 is a mid, moderate yellow-green. Relative luminance 0.098; OKLCH L 45.5% C 0.094 H 120.2°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#505E18
RGBrgb(80, 94, 24)
HSLhsl(72, 59%, 23%)
HSVhsv(72, 74%, 37%)
CMYKcmyk(14.9%, 0%, 74.5%, 63.1%)
CIE-LABlab(37.44, -16.11, 36.39)
CIE-LCHlch(37.44, 39.80, 113.88°)
OKLaboklab(45.52% -0.0474 0.0816)
OKLCHoklch(45.52% 0.094 120.2)
XYZxyz(7.4760, 9.7769, 2.3573)
Luminance0.0978 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505E18 #26185E
analogous
#5E4918 #505E18 #2D5E18
triadic
#505E18 #18505E #5E1850
tetradic
#505E18 #185E49 #26185E #5E182D
square
#505E18 #185E49 #26185E #5E182D
split-complementary
#505E18 #182D5E #49185E
monochromatic
#151806 #272D0C #505E18 #798F24 #A3C031

Accessibility & contrast

On white

7.11
#505E18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#505E18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505E18
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505E18#FFFFFF#000000##FFFFFF
##505E181.007.112.967.11
#FFFFFF7.111.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#64580D
Deuteranopia (green-blind)
#63581E
Tritanopia (blue-blind)
#555950
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #505e18;
/* rgb */ color: rgb(80, 94, 24);
/* oklch */ color: oklch(45.5% 0.094 120.2);
Tailwind
colors: {
  custom: {
    50: '#838b5a',
    500: '#505e18',
    950: '#000000',
  },
}
SCSS
$custom: #505e18;
$custom-light: #838b5a;
$custom-dark: #000000;
JSON
{
  "hex": "#505e18",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 24
  },
  "hsl": {
    "h": 72,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.45517,
    "c": 0.09437,
    "h": 120.2
  },
  "luminance": 0.09777
}

Semantic roles & 50–950 ramp

primary
#505E18
secondary
#4F3D94
accent
#45E365
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C04
muted
#7C7D79

Preview Lab

Preview with #505E18

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

Preview Lab → · Contrast checker → · Palette generator →

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