#505116#505116

#505116 is a dark, moderate yellow. Relative luminance 0.076; OKLCH L 42.1% C 0.079 H 110.3°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#505116
RGBrgb(80, 81, 22)
HSLhsl(61, 57%, 20%)
HSVhsv(61, 73%, 32%)
CMYKcmyk(1.2%, 0%, 72.8%, 68.2%)
CIE-LABlab(33.24, -8.87, 33.04)
CIE-LCHlch(33.24, 34.21, 105.03°)
OKLaboklab(42.14% -0.0274 0.0742)
OKLCHoklch(42.14% 0.079 110.3)
XYZxyz(6.3957, 7.6484, 1.8983)
Luminance0.0765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505116 #171651
analogous
#513416 #505116 #325116
triadic
#505116 #165051 #511650
tetradic
#505116 #165134 #171651 #511632
square
#505116 #165134 #171651 #511632
split-complementary
#505116 #163251 #341651
monochromatic
#181807 #202109 #505116 #808123 #AFB130

Accessibility & contrast

On white

8.30
#505116 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#505116 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505116
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505116#FFFFFF#000000##FFFFFF
##5051161.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D0D
Deuteranopia (green-blind)
#584F1A
Tritanopia (blue-blind)
#564C45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #505116;
/* rgb */ color: rgb(80, 81, 22);
/* oklch */ color: oklch(42.1% 0.079 110.3);
Tailwind
colors: {
  custom: {
    50: '#838157',
    500: '#505116',
    950: '#000000',
  },
}
SCSS
$custom: #505116;
$custom-light: #838157;
$custom-dark: #000000;
JSON
{
  "hex": "#505116",
  "rgb": {
    "r": 80,
    "g": 81,
    "b": 22
  },
  "hsl": {
    "h": 61.017,
    "s": 57.282,
    "l": 20.196
  },
  "oklch": {
    "l": 0.42143,
    "c": 0.07908,
    "h": 110.3
  },
  "luminance": 0.07648
}

Semantic roles & 50–950 ramp

primary
#505116
secondary
#3C3A88
accent
#47E14A
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #505116

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

Preview Lab → · Contrast checker → · Palette generator →

#505116 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva