#505C17#505C17

#505C17 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#505C17
RGBrgb(80, 92, 23)
HSLhsl(70, 60%, 23%)
HSVhsv(70, 75%, 36%)
CMYKcmyk(13%, 0%, 75%, 63.9%)
CIE-LABlab(36.78, -15.08, 36.16)
CIE-LCHlch(36.78, 39.18, 112.63°)
OKLaboklab(44.99% -0.0446 0.0809)
OKLCHoklch(44.99% 0.092 118.9)
XYZxyz(7.2902, 9.4217, 2.2450)
Luminance0.0942 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505C17 #23175C
analogous
#5C4617 #505C17 #2D5C17
triadic
#505C17 #17505C #5C1750
tetradic
#505C17 #175C46 #23175C #5C172D
square
#505C17 #175C46 #23175C #5C172D
split-complementary
#505C17 #172D5C #46175C
monochromatic
#151806 #252B0B #505C17 #7B8D23 #A5BE2F

Accessibility & contrast

On white

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

On black

2.88
#505C17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##505C17#FFFFFF#000000##FFFFFF
##505C171.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #505c17;
/* rgb */ color: rgb(80, 92, 23);
/* oklch */ color: oklch(45.0% 0.092 118.9);
Tailwind
colors: {
  custom: {
    50: '#838a59',
    500: '#505c17',
    950: '#000000',
  },
}
SCSS
$custom: #505c17;
$custom-light: #838a59;
$custom-dark: #000000;
JSON
{
  "hex": "#505c17",
  "rgb": {
    "r": 80,
    "g": 92,
    "b": 23
  },
  "hsl": {
    "h": 70.435,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.44987,
    "c": 0.09243,
    "h": 118.9
  },
  "luminance": 0.09422
}

Semantic roles & 50–950 ramp

primary
#505C17
secondary
#4B3C93
accent
#45E360
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #505C17

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

Preview Lab → · Contrast checker → · Palette generator →

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