#505F0F#505F0F

#505F0F is a mid, moderate yellow-green. Relative luminance 0.099; OKLCH L 45.7% C 0.101 H 120.3°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#505F0F
RGBrgb(80, 95, 15)
HSLhsl(71, 73%, 22%)
HSVhsv(71, 84%, 37%)
CMYKcmyk(15.8%, 0%, 84.2%, 62.7%)
CIE-LABlab(37.71, -17.16, 40.07)
CIE-LCHlch(37.71, 43.59, 113.19°)
OKLaboklab(45.71% -0.0511 0.0877)
OKLCHoklch(45.71% 0.101 120.3)
XYZxyz(7.4868, 9.9244, 1.9730)
Luminance0.0992 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505F0F #1E0F5F
analogous
#5F460F #505F0F #285F0F
triadic
#505F0F #0F505F #5F0F50
tetradic
#505F0F #0F5F46 #1E0F5F #5F0F28
square
#505F0F #0F5F46 #1E0F5F #5F0F28
split-complementary
#505F0F #0F285F #460F5F
monochromatic
#161A04 #232A07 #505F0F #7D9417 #A9C920

Accessibility & contrast

On white

7.04
#505F0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#505F0F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505F0F
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505F0F#FFFFFF#000000##FFFFFF
##505F0F1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665900
Deuteranopia (green-blind)
#645917
Tritanopia (blue-blind)
#555950
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #505f0f;
/* rgb */ color: rgb(80, 95, 15);
/* oklch */ color: oklch(45.7% 0.101 120.3);
Tailwind
colors: {
  custom: {
    50: '#848c56',
    500: '#505f0f',
    950: '#000000',
  },
}
SCSS
$custom: #505f0f;
$custom-light: #848c56;
$custom-dark: #000000;
JSON
{
  "hex": "#505f0f",
  "rgb": {
    "r": 80,
    "g": 95,
    "b": 15
  },
  "hsl": {
    "h": 71.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.45714,
    "c": 0.10147,
    "h": 120.3
  },
  "luminance": 0.09924
}

Semantic roles & 50–950 ramp

primary
#505F0F
secondary
#453298
accent
#38EF5B
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #505F0F

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

Preview Lab → · Contrast checker → · Palette generator →

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