#505012#505012

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

Color values

HEX#505012
RGBrgb(80, 80, 18)
HSLhsl(60, 63%, 19%)
HSVhsv(60, 78%, 31%)
CMYKcmyk(0%, 0%, 77.5%, 68.6%)
CIE-LABlab(32.89, -8.53, 34.44)
CIE-LCHlch(32.89, 35.48, 103.91°)
OKLaboklab(41.85% -0.0269 0.0764)
OKLCHoklch(41.85% 0.081 109.4)
XYZxyz(6.2863, 7.4867, 1.6861)
Luminance0.0749 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#505012 #121250
analogous
#503112 #505012 #315012
triadic
#505012 #125050 #501250
tetradic
#505012 #125031 #121250 #501231
square
#505012 #125031 #121250 #501231
split-complementary
#505012 #123150 #311250
monochromatic
#191906 #1E1E07 #505012 #82821D #B4B428

Accessibility & contrast

On white

8.41
#505012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #505012
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##505012#FFFFFF#000000##FFFFFF
##5050121.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#574C07
Deuteranopia (green-blind)
#584E17
Tritanopia (blue-blind)
#564A44
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #505012;
/* rgb */ color: rgb(80, 80, 18);
/* oklch */ color: oklch(41.9% 0.081 109.4);
Tailwind
colors: {
  custom: {
    50: '#838055',
    500: '#505012',
    950: '#000000',
  },
}
SCSS
$custom: #505012;
$custom-light: #838055;
$custom-dark: #000000;
JSON
{
  "hex": "#505012",
  "rgb": {
    "r": 80,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 60,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.41854,
    "c": 0.08097,
    "h": 109.4
  },
  "luminance": 0.07486
}

Semantic roles & 50–950 ramp

primary
#505012
secondary
#353589
accent
#41E641
background
#F8F7F5
surface
#EFEEE9
border
#CAC9C5
text
#0B0A03
muted
#7C7C78

Preview Lab

Preview with #505012

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

Preview Lab → · Contrast checker → · Palette generator →

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