#505111#505111

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

Color values

HEX#505111
RGBrgb(80, 81, 17)
HSLhsl(61, 65%, 19%)
HSVhsv(61, 79%, 32%)
CMYKcmyk(1.2%, 0%, 79%, 68.2%)
CIE-LABlab(33.20, -9.17, 35.15)
CIE-LCHlch(33.20, 36.33, 104.62°)
OKLaboklab(42.1% -0.0289 0.0777)
OKLCHoklch(42.1% 0.083 110.4)
XYZxyz(6.3521, 7.6310, 1.6685)
Luminance0.0763 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505111 #121151
analogous
#513211 #505111 #305111
triadic
#505111 #115051 #511150
tetradic
#505111 #115132 #121151 #511130
square
#505111 #115132 #121151 #511130
split-complementary
#505111 #113051 #321151
monochromatic
#191905 #1E1E06 #505111 #82841C #B4B626

Accessibility & contrast

On white

8.31
#505111 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #505111
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505111#FFFFFF#000000##FFFFFF
##5051111.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D05
Deuteranopia (green-blind)
#594F16
Tritanopia (blue-blind)
#564B45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #505111;
/* rgb */ color: rgb(80, 81, 17);
/* oklch */ color: oklch(42.1% 0.083 110.4);
Tailwind
colors: {
  custom: {
    50: '#848154',
    500: '#505111',
    950: '#000000',
  },
}
SCSS
$custom: #505111;
$custom-light: #848154;
$custom-dark: #000000;
JSON
{
  "hex": "#505111",
  "rgb": {
    "r": 80,
    "g": 81,
    "b": 17
  },
  "hsl": {
    "h": 60.938,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.42101,
    "c": 0.08284,
    "h": 110.4
  },
  "luminance": 0.07631
}

Semantic roles & 50–950 ramp

primary
#505111
secondary
#35348A
accent
#40E842
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #505111

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

Preview Lab → · Contrast checker → · Palette generator →

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