#505E17#505E17

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

Color values

HEX#505E17
RGBrgb(80, 94, 23)
HSLhsl(72, 61%, 23%)
HSVhsv(72, 76%, 37%)
CMYKcmyk(14.9%, 0%, 75.5%, 63.1%)
CIE-LABlab(37.43, -16.18, 36.81)
CIE-LCHlch(37.43, 40.21, 113.72°)
OKLaboklab(45.51% -0.0477 0.0823)
OKLCHoklch(45.51% 0.095 120.1)
XYZxyz(7.4658, 9.7728, 2.3035)
Luminance0.0977 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505E17 #25175E
analogous
#5E4817 #505E17 #2C5E17
triadic
#505E17 #17505E #5E1750
tetradic
#505E17 #175E48 #25175E #5E172C
square
#505E17 #175E48 #25175E #5E172C
split-complementary
#505E17 #172C5E #48175E
monochromatic
#151906 #262D0B #505E17 #7A8F23 #A4C02F

Accessibility & contrast

On white

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

On black

2.95
#505E17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##505E17#FFFFFF#000000##FFFFFF
##505E171.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #505e17;
/* rgb */ color: rgb(80, 94, 23);
/* oklch */ color: oklch(45.5% 0.095 120.1);
Tailwind
colors: {
  custom: {
    50: '#838b59',
    500: '#505e17',
    950: '#000000',
  },
}
SCSS
$custom: #505e17;
$custom-light: #838b59;
$custom-dark: #000000;
JSON
{
  "hex": "#505e17",
  "rgb": {
    "r": 80,
    "g": 94,
    "b": 23
  },
  "hsl": {
    "h": 71.831,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.45508,
    "c": 0.09511,
    "h": 120.1
  },
  "luminance": 0.09773
}

Semantic roles & 50–950 ramp

primary
#505E17
secondary
#4E3C95
accent
#44E464
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C04
muted
#7C7D79

Preview Lab

Preview with #505E17

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

Preview Lab → · Contrast checker → · Palette generator →

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