#506012#506012

#506012 is a mid, moderate yellow-green. Relative luminance 0.101; OKLCH L 46.0% C 0.101 H 120.9°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#506012
RGBrgb(80, 96, 18)
HSLhsl(72, 68%, 22%)
HSVhsv(72, 81%, 38%)
CMYKcmyk(16.7%, 0%, 81.3%, 62.4%)
CIE-LABlab(38.05, -17.55, 39.35)
CIE-LCHlch(38.05, 43.08, 114.04°)
OKLaboklab(46% -0.0519 0.0867)
OKLCHoklch(46% 0.101 120.9)
XYZxyz(7.6005, 10.1149, 2.1241)
Luminance0.1012 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#506012 #221260
analogous
#604912 #506012 #296012
triadic
#506012 #125060 #601250
tetradic
#506012 #126049 #221260 #601229
square
#506012 #126049 #221260 #601229
split-complementary
#506012 #122960 #491260
monochromatic
#151A05 #252C08 #506012 #7B941C #A6C725

Accessibility & contrast

On white

6.95
#506012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#506012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #506012
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##506012#FFFFFF#000000##FFFFFF
##5060121.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#665A01
Deuteranopia (green-blind)
#645A19
Tritanopia (blue-blind)
#555B51
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #506012;
/* rgb */ color: rgb(80, 96, 18);
/* oklch */ color: oklch(46.0% 0.101 120.9);
Tailwind
colors: {
  custom: {
    50: '#848d57',
    500: '#506012',
    950: '#000000',
  },
}
SCSS
$custom: #506012;
$custom-light: #848d57;
$custom-dark: #000000;
JSON
{
  "hex": "#506012",
  "rgb": {
    "r": 80,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 72.308,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.45995,
    "c": 0.10107,
    "h": 120.9
  },
  "luminance": 0.10115
}

Semantic roles & 50–950 ramp

primary
#506012
secondary
#4A3698
accent
#3DEB60
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C03
muted
#7C7D78

Preview Lab

Preview with #506012

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

Preview Lab → · Contrast checker → · Palette generator →

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