#505117#505117

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

Color values

HEX#505117
RGBrgb(80, 81, 23)
HSLhsl(61, 56%, 20%)
HSVhsv(61, 72%, 32%)
CMYKcmyk(1.2%, 0%, 71.6%, 68.2%)
CIE-LABlab(33.25, -8.80, 32.58)
CIE-LCHlch(33.25, 33.75, 105.12°)
OKLaboklab(42.15% -0.0271 0.0734)
OKLCHoklch(42.15% 0.078 110.3)
XYZxyz(6.4056, 7.6524, 1.9501)
Luminance0.0765 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505117 #181751
analogous
#513517 #505117 #335117
triadic
#505117 #175051 #511750
tetradic
#505117 #175135 #181751 #511733
square
#505117 #175135 #181751 #511733
split-complementary
#505117 #173351 #351751
monochromatic
#181807 #212109 #505117 #7F8125 #AEB032

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##505117#FFFFFF#000000##FFFFFF
##5051171.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)
#584D0F
Deuteranopia (green-blind)
#584F1B
Tritanopia (blue-blind)
#564C45
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #505117;
/* rgb */ color: rgb(80, 81, 23);
/* oklch */ color: oklch(42.2% 0.078 110.3);
Tailwind
colors: {
  custom: {
    50: '#838158',
    500: '#505117',
    950: '#000000',
  },
}
SCSS
$custom: #505117;
$custom-light: #838158;
$custom-dark: #000000;
JSON
{
  "hex": "#505117",
  "rgb": {
    "r": 80,
    "g": 81,
    "b": 23
  },
  "hsl": {
    "h": 61.034,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.42152,
    "c": 0.07825,
    "h": 110.3
  },
  "luminance": 0.07652
}

Semantic roles & 50–950 ramp

primary
#505117
secondary
#3D3C88
accent
#49DF4B
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #505117

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

Preview Lab → · Contrast checker → · Palette generator →

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