#505017#505017

#505017 is a dark, moderate yellow. Relative luminance 0.075; OKLCH L 41.9% C 0.077 H 109.3°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#505017
RGBrgb(80, 80, 23)
HSLhsl(60, 55%, 20%)
HSVhsv(60, 71%, 31%)
CMYKcmyk(0%, 0%, 71.2%, 68.6%)
CIE-LABlab(32.93, -8.21, 32.25)
CIE-LCHlch(32.93, 33.28, 104.29°)
OKLaboklab(41.9% -0.0255 0.0727)
OKLCHoklch(41.9% 0.077 109.3)
XYZxyz(6.3318, 7.5048, 1.9255)
Luminance0.0751 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505017 #171750
analogous
#503317 #505017 #335017
triadic
#505017 #175050 #501750
tetradic
#505017 #175033 #171750 #501733
square
#505017 #175033 #171750 #501733
split-complementary
#505017 #173350 #331750
monochromatic
#181807 #202009 #505017 #808025 #AFAF32

Accessibility & contrast

On white

8.40
#505017 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#505017 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #505017
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505017#FFFFFF#000000##FFFFFF
##5050171.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C0F
Deuteranopia (green-blind)
#584E1B
Tritanopia (blue-blind)
#564B44
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #505017;
/* rgb */ color: rgb(80, 80, 23);
/* oklch */ color: oklch(41.9% 0.077 109.3);
Tailwind
colors: {
  custom: {
    50: '#838058',
    500: '#505017',
    950: '#000000',
  },
}
SCSS
$custom: #505017;
$custom-light: #838058;
$custom-dark: #000000;
JSON
{
  "hex": "#505017",
  "rgb": {
    "r": 80,
    "g": 80,
    "b": 23
  },
  "hsl": {
    "h": 60,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.41898,
    "c": 0.07705,
    "h": 109.3
  },
  "luminance": 0.07505
}

Semantic roles & 50–950 ramp

primary
#505017
secondary
#3C3C87
accent
#49DF49
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #505017

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

Preview Lab → · Contrast checker → · Palette generator →

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