#505A17#505A17

#505A17 is a dark, moderate yellow. Relative luminance 0.091; OKLCH L 44.5% C 0.090 H 117.6°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#505A17
RGBrgb(80, 90, 23)
HSLhsl(69, 59%, 22%)
HSVhsv(69, 74%, 35%)
CMYKcmyk(11.1%, 0%, 74.4%, 64.7%)
CIE-LABlab(36.14, -13.96, 35.52)
CIE-LCHlch(36.14, 38.16, 111.46°)
OKLaboklab(44.47% -0.0415 0.0796)
OKLCHoklch(44.47% 0.09 117.6)
XYZxyz(7.1192, 9.0797, 2.1880)
Luminance0.0908 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505A17 #21175A
analogous
#5A4317 #505A17 #2F5A17
triadic
#505A17 #17505A #5A1750
tetradic
#505A17 #175A43 #21175A #5A172F
square
#505A17 #175A43 #21175A #5A172F
split-complementary
#505A17 #172F5A #43175A
monochromatic
#161806 #25290B #505A17 #7B8B23 #A7BB30

Accessibility & contrast

On white

7.46
#505A17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#505A17 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505A17
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505A17#FFFFFF#000000##FFFFFF
##505A171.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60550C
Deuteranopia (green-blind)
#5F551C
Tritanopia (blue-blind)
#55554D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #505a17;
/* rgb */ color: rgb(80, 90, 23);
/* oklch */ color: oklch(44.5% 0.090 117.6);
Tailwind
colors: {
  custom: {
    50: '#838859',
    500: '#505a17',
    950: '#000000',
  },
}
SCSS
$custom: #505a17;
$custom-light: #838859;
$custom-dark: #000000;
JSON
{
  "hex": "#505a17",
  "rgb": {
    "r": 80,
    "g": 90,
    "b": 23
  },
  "hsl": {
    "h": 68.955,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.44467,
    "c": 0.08977,
    "h": 117.6
  },
  "luminance": 0.0908
}

Semantic roles & 50–950 ramp

primary
#505A17
secondary
#493C91
accent
#45E25D
background
#F8F8F5
surface
#EFEFE9
border
#CACAC5
text
#0B0B04
muted
#7C7C79

Preview Lab

Preview with #505A17

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

Preview Lab → · Contrast checker → · Palette generator →

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