#505A11#505A11

#505A11 is a dark, moderate yellow. Relative luminance 0.091; OKLCH L 44.4% C 0.094 H 117.3°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#505A11
RGBrgb(80, 90, 17)
HSLhsl(68, 68%, 21%)
HSVhsv(68, 81%, 35%)
CMYKcmyk(11.1%, 0%, 81.1%, 64.7%)
CIE-LABlab(36.10, -14.32, 37.89)
CIE-LCHlch(36.10, 40.50, 110.70°)
OKLaboklab(44.42% -0.0431 0.0834)
OKLCHoklch(44.42% 0.094 117.3)
XYZxyz(7.0658, 9.0584, 1.9064)
Luminance0.0906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505A11 #1B115A
analogous
#5A3F11 #505A11 #2B5A11
triadic
#505A11 #11505A #5A1150
tetradic
#505A11 #115A3F #1B115A #5A112B
square
#505A11 #115A3F #1B115A #5A112B
split-complementary
#505A11 #112B5A #3F115A
monochromatic
#171A05 #222707 #505A11 #7E8D1B #ACC124

Accessibility & contrast

On white

7.47
#505A11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#505A11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505A11
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505A11#FFFFFF#000000##FFFFFF
##505A111.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#615502
Deuteranopia (green-blind)
#605518
Tritanopia (blue-blind)
#55544C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #505a11;
/* rgb */ color: rgb(80, 90, 17);
/* oklch */ color: oklch(44.4% 0.094 117.3);
Tailwind
colors: {
  custom: {
    50: '#848856',
    500: '#505a11',
    950: '#000000',
  },
}
SCSS
$custom: #505a11;
$custom-light: #848856;
$custom-dark: #000000;
JSON
{
  "hex": "#505a11",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 17
  },
  "hsl": {
    "h": 68.219,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.44421,
    "c": 0.09392,
    "h": 117.3
  },
  "luminance": 0.09058
}

Semantic roles & 50–950 ramp

primary
#505A11
secondary
#413493
accent
#3DEB55
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #505A11

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

Preview Lab → · Contrast checker → · Palette generator →

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