#505D0F#505D0F

#505D0F is a mid, moderate yellow-green. Relative luminance 0.096; OKLCH L 45.2% C 0.099 H 119.1°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#505D0F
RGBrgb(80, 93, 15)
HSLhsl(70, 72%, 21%)
HSVhsv(70, 84%, 36%)
CMYKcmyk(14%, 0%, 83.9%, 63.5%)
CIE-LABlab(37.06, -16.07, 39.48)
CIE-LCHlch(37.06, 42.62, 112.15°)
OKLaboklab(45.19% -0.0481 0.0864)
OKLCHoklch(45.19% 0.099 119.1)
XYZxyz(7.3090, 9.5687, 1.9137)
Luminance0.0957 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505D0F #1C0F5D
analogous
#5D430F #505D0F #295D0F
triadic
#505D0F #0F505D #5D0F50
tetradic
#505D0F #0F5D43 #1C0F5D #5D0F29
square
#505D0F #0F5D43 #1C0F5D #5D0F29
split-complementary
#505D0F #0F295D #430F5D
monochromatic
#171A04 #232806 #505D0F #7D9217 #ABC620

Accessibility & contrast

On white

7.21
#505D0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#505D0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505D0F
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505D0F#FFFFFF#000000##FFFFFF
##505D0F1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#645700
Deuteranopia (green-blind)
#625717
Tritanopia (blue-blind)
#55574F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #505d0f;
/* rgb */ color: rgb(80, 93, 15);
/* oklch */ color: oklch(45.2% 0.099 119.1);
Tailwind
colors: {
  custom: {
    50: '#848a55',
    500: '#505d0f',
    950: '#000000',
  },
}
SCSS
$custom: #505d0f;
$custom-light: #848a55;
$custom-dark: #000000;
JSON
{
  "hex": "#505d0f",
  "rgb": {
    "r": 80,
    "g": 93,
    "b": 15
  },
  "hsl": {
    "h": 70,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.45191,
    "c": 0.09891,
    "h": 119.1
  },
  "luminance": 0.09569
}

Semantic roles & 50–950 ramp

primary
#505D0F
secondary
#423196
accent
#39EF57
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #505D0F

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

Preview Lab → · Contrast checker → · Palette generator →

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