#506512#506512

#506512 is a mid, moderate yellow-green. Relative luminance 0.111; OKLCH L 47.3% C 0.108 H 123.4°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#506512
RGBrgb(80, 101, 18)
HSLhsl(75, 70%, 23%)
HSVhsv(75, 82%, 40%)
CMYKcmyk(20.8%, 0%, 82.2%, 60.4%)
CIE-LABlab(39.68, -20.21, 40.86)
CIE-LCHlch(39.68, 45.58, 116.32°)
OKLaboklab(47.31% -0.0592 0.0899)
OKLCHoklch(47.31% 0.108 123.4)
XYZxyz(8.0712, 11.0565, 2.2810)
Luminance0.1106 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#506512 #271265
analogous
#655012 #506512 #266512
triadic
#506512 #125065 #651250
tetradic
#506512 #126550 #271265 #651226
square
#506512 #126550 #271265 #651226
split-complementary
#506512 #122665 #501265
monochromatic
#151A05 #273109 #506512 #79991B #A2CD25

Accessibility & contrast

On white

6.54
#506512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#506512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #506512
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##506512#FFFFFF#000000##FFFFFF
##5065121.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B5E00
Deuteranopia (green-blind)
#695D1A
Tritanopia (blue-blind)
#546056
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #506512;
/* rgb */ color: rgb(80, 101, 18);
/* oklch */ color: oklch(47.3% 0.108 123.4);
Tailwind
colors: {
  custom: {
    50: '#849158',
    500: '#506512',
    950: '#000000',
  },
}
SCSS
$custom: #506512;
$custom-light: #849158;
$custom-dark: #000000;
JSON
{
  "hex": "#506512",
  "rgb": {
    "r": 80,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 75.181,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.4731,
    "c": 0.10765,
    "h": 123.4
  },
  "luminance": 0.11057
}

Semantic roles & 50–950 ramp

primary
#506512
secondary
#50369D
accent
#3BED68
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0B0C04
muted
#7C7D79

Preview Lab

Preview with #506512

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

Preview Lab → · Contrast checker → · Palette generator →

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