#505B11#505B11

#505B11 is a dark, moderate yellow. Relative luminance 0.092; OKLCH L 44.7% C 0.095 H 118.0°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#505B11
RGBrgb(80, 91, 17)
HSLhsl(69, 69%, 21%)
HSVhsv(69, 81%, 36%)
CMYKcmyk(12.1%, 0%, 81.3%, 64.3%)
CIE-LABlab(36.42, -14.87, 38.19)
CIE-LCHlch(36.42, 40.98, 111.28°)
OKLaboklab(44.68% -0.0447 0.0841)
OKLCHoklch(44.68% 0.095 118)
XYZxyz(7.1507, 9.2282, 1.9347)
Luminance0.0923 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505B11 #1C115B
analogous
#5B4111 #505B11 #2B5B11
triadic
#505B11 #11505B #5B1150
tetradic
#505B11 #115B41 #1C115B #5B112B
square
#505B11 #115B41 #1C115B #5B112B
split-complementary
#505B11 #112B5B #41115B
monochromatic
#171A05 #232707 #505B11 #7D8F1B #ABC224

Accessibility & contrast

On white

7.38
#505B11 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#505B11 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505B11
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505B11#FFFFFF#000000##FFFFFF
##505B111.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625602
Deuteranopia (green-blind)
#605618
Tritanopia (blue-blind)
#55554D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #505b11;
/* rgb */ color: rgb(80, 91, 17);
/* oklch */ color: oklch(44.7% 0.095 118.0);
Tailwind
colors: {
  custom: {
    50: '#848956',
    500: '#505b11',
    950: '#000000',
  },
}
SCSS
$custom: #505b11;
$custom-light: #848956;
$custom-dark: #000000;
JSON
{
  "hex": "#505b11",
  "rgb": {
    "r": 80,
    "g": 91,
    "b": 17
  },
  "hsl": {
    "h": 68.919,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.44681,
    "c": 0.09519,
    "h": 118
  },
  "luminance": 0.09228
}

Semantic roles & 50–950 ramp

primary
#505B11
secondary
#423494
accent
#3CEB56
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0B03
muted
#7C7C78

Preview Lab

Preview with #505B11

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

Preview Lab → · Contrast checker → · Palette generator →

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